Gestures

Mobile gestures are the movements made by a user to perform a specific action on a control within a mobile interface majorly through fingers(tap, swipe, drag, slide, etc.). The various Gestures supported by Xamarin.Forms are:

  1. Tap Gesture: Xamarin supports the tap gesture. A tap gesture is recognised when the user touches the mobile screen with single or multiple fingers once or twice in quick succession. The Tap Gesture is recognized with TapGestureRecognizer Class class.

  2. Pinch Gesture: Pinch Gesture occurs when the user places two fingers on the screen at a distance and brings them towards each other or keeps them together and moves them away from each other. This gesture is common to zoom in or out in a map mode. The Pinch Gesture is recognized with PinchGestureRecognizer Class.

  3. Pan Gesture: A pan gesture is used for detecting the movement of fingers around the screen. These movements are then applied to the content currently at the display. It is recognized with the PanGestureRecognizer class

  4. Swipe Gesture: A swipe gesture occurs when a finger is moved across the mobile screen in a horizontal or vertical direction and is often used to initiate navigation through content. Swipe gestures are recognized with SwipeGestureRecognizer class.

Last updated