private void ListView_SwipeEnded(object sender, Syncfusion.ListView.XForms.SwipeEndedEventArgs e) { if (e.SwipeOffset >= 100) { AssList.ResetSwipe(); Asses.RemoveAt(e.ItemIndex); AssList.ItemsSource = Asses; UpdateOverallScore(); } }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { Syncfusion.ListView.XForms.SwipeEndedEventArgs eventArg = null; if (value is Syncfusion.ListView.XForms.SwipeEndedEventArgs) { eventArg = value as Syncfusion.ListView.XForms.SwipeEndedEventArgs; } return(eventArg); }
/// <summary> /// ListView SwipeEnded event /// </summary> /// <param name="sender">sender value</param> /// <param name="e">Event args</param> private void ListView_SwipeEnded(object sender, Syncfusion.ListView.XForms.SwipeEndedEventArgs e) { if (e.SwipeDirection == Syncfusion.ListView.XForms.SwipeDirection.Right) { e.SwipeOffset = sfListView.Width; Device.BeginInvokeOnMainThread(async() => { await Task.Delay(500); viewModel.Tasks.RemoveAt(e.ItemIndex); }); } }
private void ListView_SwipeEnded(object sender, Syncfusion.ListView.XForms.SwipeEndedEventArgs e) { SwipingViewModel.ItemIndex = e.ItemIndex; if (e.SwipeDirection == Syncfusion.ListView.XForms.SwipeDirection.Right) { e.SwipeOffset = 80; } else if (e.SwipeDirection == SwipeDirection.Left) { e.SwipeOffset = 120; } }
private async void ListView_SwipeEnded(object sender, Syncfusion.ListView.XForms.SwipeEndedEventArgs e) { if (e.SwipeOffset > 300) { var action = await DisplayAlert(AppResources.Delete, AppResources.DeleteQuestion, AppResources.Yes, AppResources.No); if (action) { ((SettingsListViewModel)BindingContext).DeleteSchema(e.ItemIndex); } listView.ResetSwipe(); } }
void Handle_SwipeEnded(object sender, Syncfusion.ListView.XForms.SwipeEndedEventArgs e) { viewModel.ItemIndex = e.ItemIndex; }
private void ListView_SwipeEnded(object sender, Syncfusion.ListView.XForms.SwipeEndedEventArgs e) { itemIndex = e.ItemIndex; }
public void OnSwipeEnded(SwipeEndedEventArgs eventArgs) { itemIndex = eventArgs.ItemIndex; }