Share via


Xamarin.Forms gestures

Gesture recognizers can be used to detect user interaction with views in a Xamarin.Forms application.

The Xamarin.Forms GestureRecognizer class supports tap, pinch, pan, swipe, and drag and drop gestures on View instances.

Add a tap gesture recognizer

A tap gesture is used for tap detection and is recognized with the TapGestureRecognizer class.

Add a pinch gesture recognizer

A pinch gesture is used for performing interactive zoom and is recognized with the PinchGestureRecognizer class.

Add a pan gesture recognizer

A pan gesture is used for detecting the movement of fingers around the screen and applying that movement to content, and is recognized with the PanGestureRecognizer class.

Add a swipe gesture recognizer

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

Add a drag and drop gesture recognizer

A drag and drop gesture enables items, and their associated data packages, to be dragged from one onscreen location to another location using a continuous gesture. Drag gestures are recognized with the DragGestureRecognizer class, and drop gestures are recognized with the DropGestureRecognizer class.