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

ListItem.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
Public Event StateChanging As StateChangingEventHandler
C#
public 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.

See Also

Reference