Xamarin.Forms Guides | Samples

Xamarin.Forms.TapGestureRecognizer Class

Provides tap gesture recognition and events.

See Also: TapGestureRecognizer

Syntax

public sealed class TapGestureRecognizer : GestureRecognizer

Remarks

Can be used to recognize single and multiple tap gestures.

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.0.0.0, 1.1.0.0, 1.2.0.0, 1.3.0.0, 1.4.0.0, 1.5.0.0, 2.0.0.0

The members of Xamarin.Forms.TapGestureRecognizer are listed below.

See Also: GestureRecognizer

Public Constructors

Initializes a new instance of a TapGestureRecognizer object.
Initializes a new instance of a TapGestureRecognizer object with a parameterized callback.
Initializes a new instance of a TapGestureRecognizer object with a callback.

Public Fields

static readonly
CommandParameterPropertyBindableProperty. Identifies the CommandParameter bindable property.
static readonly
CommandPropertyBindableProperty. Identifies the Command bindable property.
static readonly
NumberOfTapsRequiredPropertyBindableProperty. Identifies the NumberOfTapsRequired bindable property.
static readonly
TappedCallbackParameterPropertyBindableProperty. Identifies the TappedCallbackParameter bindable property.
static readonly
TappedCallbackPropertyBindableProperty. Identifies the TappedCallback bindable property.

Public Properties

CommandICommand. The Command to invoke when the gesture has been triggered by the user. This is a bindable property.
CommandParameterObject. An object to be passed to the TappedCallback. This is a bindable property.
NumberOfTapsRequiredInt32. The number of taps required to trigger the callback. This is a bindable property.
TappedCallbackAction<View, object>. The action to invoke when the gesture has been triggered by the user. This is a bindable property.
TappedCallbackParameterObject. An object to be passed to the TappedCallback. This is a bindable property.

Public Events

TappedEvent that is raised when the user taps.