This documentation is for the old version. Go to the latest Graphics Mill docs

IListItem.StateChanging Event

Fires when the item state is about to be changed.

Namespace: Aurigma.GraphicsMill.WinControls
Assembly: Aurigma.GraphicsMill.WinControls (in Aurigma.GraphicsMill.WinControls.dll)

Syntax

Visual Basic
Event StateChanging As StateChangingEventHandler
C#
event StateChangingEventHandler StateChanging

Remarks

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.

See Also

Reference