ScrollBarEventArgs.IsHandled Property

Definition

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

public bool IsHandled { get; set; }

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

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1