Syncfusion.SfListView.XForms
Example 

ItemDragging Event

This event occurs while perform the item drag and drop operation and denotes the drag action by DragAction.
Syntax
public event ItemDraggingEventHandler ItemDragging
Event Data

The event handler receives an argument of type ItemDraggingEventArgs containing data related to this event. The following ItemDraggingEventArgs properties provide information specific to this event.

PropertyDescription
Gets the item drag options when performing drag-and-drop operations.  
Gets the bounds of the drag ListViewItem when performing the drag-and-drop operations.  
(Inherited from System.ComponentModel.CancelEventArgs)
Gets or sets a value indicating whether to handle the dragging item or not. It is applicable only for dragging DragAction.  
Gets the underlying data object of the ListViewItem being dragged from the bound data source.  
Gets the index of the ListViewItem in DataSource.DisplayItems of SfListView being dragged. Denotes the same index for DragAction is Start.  
Gets the index of ListViewItem in the DataSource.DisplayItems of SfListView where the item drag started.  
Gets the touch position in the drag item when performing drag-and-drop operations. Denotes from the actual screen.  
Example
The following example demonstrates how to wire the  event in .
            
listView.ItemDragging += ListView_ItemDragging;
            
private void ListView_ItemDragging(object sender, ItemDraggingEventArgs e)
{
    // Disable the dragging for 4th item.
    if (e.NewIndex == 3)
        e.Cancel = true;
}
AssemblyVersion

Syncfusion.SfListView.XForms: 17.2451.0.34

See Also