Class ItemDraggingEventArgs
The ItemDragging event provides information related to item drag and drop operations.
Inheritance
Namespace: Syncfusion.Maui.ListView
Assembly: Syncfusion.Maui.ListView.dll
Syntax
public class ItemDraggingEventArgs : CancelEventArgs
Constructors
ItemDraggingEventArgs()
Declaration
public ItemDraggingEventArgs()
Properties
Action
Gets the item drag options for drag-and-drop operations.
Declaration
public DragAction Action { get; }
Property Value
Type |
---|
DragAction |
Bounds
Gets the bounds of the drag ListViewItem when performing drag-and-drop operations.
Declaration
public Rect Bounds { get; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Graphics.Rect | The bounds of dragging ListViewItem. |
DataItem
Gets the underlying data object of the ListViewItem that is currently being dragged from the bound data source.
Declaration
public object DataItem { get; }
Property Value
Type | Description |
---|---|
System.Object | The underlying data object of the ListViewItem being dragging from the bound data source. |
Handled
Gets or sets a value indicating whether to handle the dragging item or not. This applies only to dragging DragAction.
Declaration
public bool Handled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | If true, the dragging will not be happened else dragging the item. |
NewIndex
Gets the index of the ListViewItem in the DataSource.DisplayItems collection of the SfListView that is currently being dragged. This index corresponds to the same index when the DragAction is set to Start.
Declaration
public int NewIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The item index of the dragging ListViewItem where dragging ended. |
OldIndex
Gets the index of the ListViewItem in the DataSource.DisplayItems collection of the SfListView where the item drag operation started.
Declaration
public int OldIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The item index of the dragging ListViewItem where dragging started. |
Position
Gets the touch position within the drag item when performing drag-and-drop operations, relative to the actual screen.
Declaration
public Point Position { get; }
Property Value
Type |
---|
Microsoft.Maui.Graphics.Point |