Fires when the item state is about to be changed.
Namespace:
Aurigma.GraphicsMill.WinControls
Assembly:
Aurigma.GraphicsMill.WinControls (in Aurigma.GraphicsMill.WinControls.dll)
Event StateChanging As StateChangingEventHandler
event StateChangingEventHandler StateChanging
Item state is defined by several properties: Checked, Focused, and Selected. This event is raised whenever some of these properties are about to be modified.
Main intent of this property is a possibility to disallow changing an item state. For example, if you do not want to allow the user to check some items (e.g. if they are too large), you should handle this event and set the Cancel argument to true for those items.
When you implement your own list item, use this event to be able to cancel the state change.