TileControl.StartItemDragging Event
Fires after an end-user starts dragging a tile item.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.2.dll
Declaration
Event Data
The StartItemDragging event's data class is TileItemDragEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Cancel | Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs. |
Item | Gets or sets a tile item that fired an event which takes the TileItemDragEventArgs object as a parameter. |
TargetGroup | Gets the TileGroup to which a TileItem being dragged is about to be placed. |
Remarks
The StartItemDragging event is the opposite of the TileControl.EndItemDragging event. Both of these events are fired when the TileControl.AllowDrag property is set to true.
Handle this event to completely prevent a specific tile from being dragged. To do so, check the e.Item parameter and set the e.Cancel parameter to either true or false depending on the desired behavior.
See Also