Back to Devexpress

DXCollectionView.DropItem Event

maui-devexpress-dot-maui-dot-collectionview-dot-dxcollectionview-e7ec9b2c.md

latest2.2 KB
Original Source

DXCollectionView.DropItem Event

Occurs when a user drops an item.

Namespace : DevExpress.Maui.CollectionView

Assembly : DevExpress.Maui.CollectionView.dll

NuGet Package : DevExpress.Maui.CollectionView

Declaration

csharp
public event EventHandler<DropItemEventArgs> DropItem

Event Data

The DropItem event's data class is DropItemEventArgs. 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.
DragItemGets the underlying data object of the processed item. Inherited from DragItemEventArgs.
DropItemGets the underlying object of the dropped item.
DropItemHandleGets or sets the handle of the hovered item.
ItemHandleReturns the handle of the processed item. Inherited from CancelItemEventArgs.

Remarks

You can prevent items from being dropped in specific positions. In this case, a place for the item drop is allocated, but the item returns to its initial position when it is released.

See Also

DXCollectionView Class

DXCollectionView Members

DevExpress.Maui.CollectionView Namespace