/// <summary> /// Triggers while DataGrid swiping was ended /// </summary> /// <param name="sender">DataGrid_SwipeEnded event sender </param> /// <param name="e">DataGrid_SwipeEnded args e</param> private void DataGrid_SwipeEnded(object sender, Syncfusion.SfDataGrid.XForms.SwipeEndedEventArgs e) { this.swipedRowindex = e.RowIndex; if (Math.Abs(e.SwipeOffset) >= dataGrid.Width) { if (e.SwipeOffset > 0) { this.leftTemplateView.Content.IsVisible = true; } else { this.rightTemplateView.Content.IsVisible = true; } this.DoDeleting(); } }
/// <summary> /// Triggers while Swiping was ended /// </summary> /// <param name="sender">DataGrid_SwipeEnded event sender</param> /// <param name="e">DataGrid_SwipeEnded event args</param> private void DataGrid_SwipeEnded(object sender, Syncfusion.SfDataGrid.XForms.SwipeEndedEventArgs e) { this.formView.BindingContext = e.RowData; this.swipedRowIndex = e.RowIndex; }