private void UiElementOnManipulationCompleted(object sender, ManipulationCompletedEventArgs e) { var gesture = gestureRecognizer.Gesture; if (isDoubleTapping && Math.Abs(e.TotalManipulation.Translation.X) < 0.02) { PinchAction?.Invoke(); } else if (gesture == TouchGestureType.MoveRightToLeft) { SwipeLeftAction?.Invoke(); } else if (gesture == TouchGestureType.MoveLeftToRight) { SwipeRightAction?.Invoke(); } else if (gesture == TouchGestureType.MoveBottomToUp) { SwipeUpAction?.Invoke(); } else if (gesture == TouchGestureType.MoveTopToBottom) { SwipeDownAction?.Invoke(); } else if (gesture == TouchGestureType.SingleTap) { SingleTapAction?.Invoke(); } }