The AxisScrollBarClicked event
provides custom
functionality for any of the scrollbar buttons. It is raised when the end-user
clicks on a scrollbar using the left mouse button.
Reset and Zoom
When zooming and resetting is enabled, the chart stores a history of views. When the Reset button is pressed on the scrollbar, the chart by default displays the last view for that axis.
Line Scrolling
Clicking on the up, down, left, or right arrows results in line scrolling. The amount of scroll is specified by the SmallScrollSize property.
Page Scrolling
Clicking in the scrollbar background (see the figure below) results in page scrolling. The amount of scroll is specified by the Size property.
You can use the AxisScrollBarClicked event to customize the default behavior. These behaviors include:
- Overriding the default behavior of the scrollbar using the Handled property.
- Determining what axis the scrollbar belongs to using the Axis property.
- Determining what button was clicked in the scrollbar using the ButtonType property.
- Determining the X and Y positions of the mouse cursor at the time the event is raised.