Ejemplo n.º 1
0
 private void HandSwipeAnalyzerOnSwipeDetected(object sender, SwipeEventArgs args)
 {
     if (args.Gesture == GesturesEnum.SwipeToLeft)
     {
         SelectedIndex--;
     }
     else if (args.Gesture == GesturesEnum.SwipeToRight)
     {
         SelectedIndex++;
     }
 }
Ejemplo n.º 2
0
 private void RaiseGestureDetected(SwipeEventArgs eventArgs)
 {
     if (DateTime.Now.Ticks - LastFrameTimestamp > MinimalPeriodBetweenGestures)
     {
         if (SwipeDetected != null)
             SwipeDetected(this, eventArgs);
         }
 }