Back to Devexpress

TileContainer.EndItemDragging Event

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-windowsui-dot-tilecontainer-28e69739.md

latest3.1 KB
Original Source

TileContainer.EndItemDragging Event

Occurs when an end-user drops a TileItem after dragging.

Namespace : DevExpress.XtraBars.Docking2010.Views.WindowsUI

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public event TileItemDragEventHandler EndItemDragging
vb
Public Event EndItemDragging As TileItemDragEventHandler

Event Data

The EndItemDragging 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 EndItemDragging event allows you to check which tile is being dragged and the destination group. To cancel dragging set the e.Cancel property to true.

You can also completely disable tile dragging via the ITileContainerDefaultProperties.AllowDrag property, or prohibit tiles from being dragged to anywhere outside their parent groups via the ITileContainerDefaultProperties.AllowDragTilesBetweenGroups property.

See Also

AllowDrag

AllowDragTilesBetweenGroups

TileContainer Class

TileContainer Members

DevExpress.XtraBars.Docking2010.Views.WindowsUI Namespace