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