windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-windowsui-dot-tilecontainer-b39f45e4.md
Occurs whenever an end-user starts dragging a TileContainer‘s tile.
Namespace : DevExpress.XtraBars.Docking2010.Views.WindowsUI
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public event TileItemDragEventHandler StartItemDragging
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 used to completely prohibit individual tiles ( e.Item ) from dragging. To do so, set the e.Cancel parameter to true.
The e.TargetGroup parameter is always null , since the StartItemDragging event is raised when the dragging has just begun. In order to check to which group an end-user wants to drag a tile, and if necessary, cancel this action, handle the TileContainer.EndItemDragging event instead.
See Also