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();
     }
 }
Exemple #2
0
        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();
            }
        }
Exemple #6
0
 void Handle_SwipeEnded(object sender, Syncfusion.ListView.XForms.SwipeEndedEventArgs e)
 {
     viewModel.ItemIndex = e.ItemIndex;
 }
Exemple #7
0
 private void ListView_SwipeEnded(object sender, Syncfusion.ListView.XForms.SwipeEndedEventArgs e)
 {
     itemIndex = e.ItemIndex;
 }
Exemple #8
0
 public void OnSwipeEnded(SwipeEndedEventArgs eventArgs)
 {
     itemIndex = eventArgs.ItemIndex;
 }