Beispiel #1
0
        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);
            }
        }
Beispiel #2
0
 void OnSwiped(object sender, SwipeEventArgs args)
 {
     Debug.WriteLine($"We were swiped {args.Direction}");
 }