ScrollBarEventArgs.IsHandled Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
true
if the default behavior of the event should be cancelled, otherwise false
.
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.
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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: