TileControl.StartItemDragging Event
Fires after an end-user starts dragging a tile item.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
[DXCategory("Behavior")]
public event TileItemDragEventHandler StartItemDragging
#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 Cancel |
Item |
Gets or sets a tile item that fired an event which takes the Tile |
Target |
Gets the Tile |
#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.