ScrollBarEventArgs.IsHandled Property

Definition

Gets or sets a flag that indicates whether to cancel the default behavior of specific scrollbar events.

public:
 property bool IsHandled { bool get(); void set(bool value); };
public bool IsHandled { get; set; }
member this.IsHandled : bool with get, set
Public Property IsHandled As Boolean

Property Value

true if the default behavior of the event should be cancelled, otherwise false.

Remarks

This property is exposed in the AxisScrollBarClicked event of the root Chart object.

This property can be used to cancel the default behavior on specific scrollbar events.

If you click on a scrollbar button, the default manipulation of the view will occur.

The following list summarizes this default behavior:

  • If the user clicks the Reset/Zoom button, the previous view will be displayed.

  • If the user clicks in the scrollbar background - that is, not on the scrolling thumb, otherwise known as the tracker - large increments and/or decrements of the scrollbar will occur, with the increment and/or decrement size being determined by the Size property.

To turn off these default behaviors, set the IsHandled property to true after providing custom logic in the AxisScrollBarClicked event.

Applies to