Back to Devexpress

TileControl.StartItemDragging Event

windowsforms-devexpress-dot-xtraeditors-dot-tilecontrol-38a82bc7.md

latest2.8 KB
Original Source

TileControl.StartItemDragging Event

Fires after an end-user starts dragging a tile item.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Behavior")]
public event TileItemDragEventHandler StartItemDragging
vb
<DXCategory("Behavior")>
Public Event StartItemDragging As TileItemDragEventHandler

Event Data

The StartItemDragging event's data class is TileItemDragEventArgs. The following properties provide information specific to this event:

PropertyDescription
CancelGets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
ItemGets or sets a tile item that fired an event which takes the TileItemDragEventArgs object as a parameter.
TargetGroupGets 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

EndItemDragging

AllowDrag

AllowDragTilesBetweenGroups

TileControl Class

TileControl Members

DevExpress.XtraEditors Namespace