SwipeStarted Event (SfListView)

Occurs when the swipe offset changes from its initial value.
public event SwipeStartedEventHandler SwipeStarted
Event Data

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

(Inherited from System.ComponentModel.CancelEventArgs)
Gets the underlying data object of the swiped ListViewItem from the bound data source.  
Gets the index of the swiped ListViewItem in the DataSource.DisplayItems of SfListView.  
Gets the swipe direction of the swiped ListViewItem.  
The SwipeStarted event is a cancelable event and can be canceled by handling the event and setting the Cancel property to true. However, if the event is canceled, the swipe action for that particular item gets cancelled.
The following example demonstrates how to wire the swipe started event in SfListView.
listView.SwipeStarted += ListView_SwipeStarted;
private void ListView_SwipeStarted(object sender, SwipeStartedEventArgs e)
   if (e.ItemIndex == 1)
       e.Cancel = true;

Syncfusion.SfListView.XForms: 17.2451.0.34

See Also