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