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