windowsforms-devexpress-dot-xtraeditors-dot-tilecontrol-38a82bc7.md
Fires after an end-user starts dragging a tile item.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DXCategory("Behavior")]
public event TileItemDragEventHandler StartItemDragging
<DXCategory("Behavior")>
Public Event StartItemDragging As TileItemDragEventHandler
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. |
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