# Gesture class

Namespace: [Eto.Forms](https://eto.picoe.ca/api/namespace/eto.forms.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md) · Since v2.12

```cs
[Handler(Gesture.IHandler)]
public abstract class Gesture : Widget
```

Base class for platform gestures that can be attached to a [Gesture.Control](https://eto.picoe.ca/api/type/eto.forms.gesture/control.md).

**Derived types:** [MagnificationGesture](https://eto.picoe.ca/api/type/eto.forms.magnificationgesture.md), [PanGesture](https://eto.picoe.ca/api/type/eto.forms.pangesture.md), [RotationGesture](https://eto.picoe.ca/api/type/eto.forms.rotationgesture.md), [ScrollGesture](https://eto.picoe.ca/api/type/eto.forms.scrollgesture.md)

## Properties

- [Control](https://eto.picoe.ca/api/type/eto.forms.gesture/control.md): Gets the control that this gesture is attached to, or null if not attached to a control.
- [Enabled](https://eto.picoe.ca/api/type/eto.forms.gesture/enabled.md): Gets or sets a value indicating whether this gesture can be recognized.

## Methods

- [AllowSimultaneousWith](https://eto.picoe.ca/api/type/eto.forms.gesture/allowsimultaneouswith.md): (3 overloads) Allows this gesture and the specified gesture to recognize simultaneously.
- [AllowsSimultaneousRecognition](https://eto.picoe.ca/api/type/eto.forms.gesture/allowssimultaneousrecognition.md): Determines whether this gesture allows simultaneous recognition with the specified gesture.
- [CanRecognizeSimultaneouslyWith](https://eto.picoe.ca/api/type/eto.forms.gesture/canrecognizesimultaneouslywith.md): Determines whether this gesture and another gesture mutually allow simultaneous recognition.
- [DisallowSimultaneousWith](https://eto.picoe.ca/api/type/eto.forms.gesture/disallowsimultaneouswith.md): (3 overloads) Removes a previously allowed simultaneous gesture pairing.
- [GetCallback](https://eto.picoe.ca/api/type/eto.forms.gesture/getcallback.md): Gets an instance of an object used to perform callbacks to the widget from handler implementations
- [OnActivated](https://eto.picoe.ca/api/type/eto.forms.gesture/onactivated.md): Raises the [Gesture.Activated](https://eto.picoe.ca/api/type/eto.forms.gesture/activated.md) event.

## Events

- [Activated](https://eto.picoe.ca/api/type/eto.forms.gesture/activated.md): Occurs when the gesture has been recognized by the platform.
- [CanRecognizeSimultaneously](https://eto.picoe.ca/api/type/eto.forms.gesture/canrecognizesimultaneously.md): Occurs when determining whether this gesture can recognize simultaneously with another gesture.

## Inherited Members

- From [Widget](https://eto.picoe.ca/api/type/eto.widget.md): [ControlObject](https://eto.picoe.ca/api/type/eto.widget/controlobject.md), [Handler](https://eto.picoe.ca/api/type/eto.widget/handler.md), [ID](https://eto.picoe.ca/api/type/eto.widget/id.md), [IsDisposed](https://eto.picoe.ca/api/type/eto.widget/isdisposed.md), [NativeHandle](https://eto.picoe.ca/api/type/eto.widget/nativehandle.md), [Platform](https://eto.picoe.ca/api/type/eto.widget/platform.md), [Properties](https://eto.picoe.ca/api/type/eto.widget/properties.md), [Style](https://eto.picoe.ca/api/type/eto.widget/style.md), [StyleChanged](https://eto.picoe.ca/api/type/eto.widget/stylechanged.md), [Dispose](https://eto.picoe.ca/api/type/eto.widget/dispose.md), [Initialize](https://eto.picoe.ca/api/type/eto.widget/initialize.md), [OnStyleChanged](https://eto.picoe.ca/api/type/eto.widget/onstylechanged.md), [ToString](https://eto.picoe.ca/api/type/eto.widget/tostring.md)
