void OnManipulatedCompleted(object sender, ManipulationCompletedRoutedEventArgs e) { this.TranslateContent(0); if (IsManipulationSignificant(e.Cumulative.Translation.X)) { SwipeEventArgs args = new SwipeEventArgs() { Direction = e.Cumulative.Translation.X < 0 ? SwipeDirection.Left : SwipeDirection.Right }; this.Swiped?.Invoke(this, args); } }
void OnSwiped(object sender, SwipeEventArgs args) { Debug.WriteLine($"We were swiped {args.Direction}"); }