Xamarin.Forms Guides | Samples

Xamarin.Forms.ClickGestureRecognizer Class

Recognizer for click gestures.

See Also: ClickGestureRecognizer


public sealed class ClickGestureRecognizer : GestureRecognizer


Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions:

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

See Also: GestureRecognizer

Public Constructors

Creates a new ClickGestureRecognizer with default values.

Public Fields

static readonly
ButtonsPropertyBindableProperty. Backing store for the ClickGestureRecognizer.Buttons property.
static readonly
CommandParameterPropertyBindableProperty. Backing store for the ClickGestureRecognizer.CommandParameter property.
static readonly
CommandPropertyBindableProperty. Backing store for the ClickGestureRecognizer.Command property.
static readonly
NumberOfClicksRequiredPropertyBindableProperty. Backing store for the ClickGestureRecognizer.NumberOfClicksRequired property.

Public Properties

ButtonsButtonsMask. Gets or sets flag values that indicate which button or buttons were clicked.
CommandICommand. Gets or sets the command to run.
CommandParameterObject. Gets or sets the command parameter.
NumberOfClicksRequiredInt32. The number of clicks required to activate the recognizer.

Public Methods

SendClicked(View, ButtonsMask)
Runs the command for the click, if present, and invokes the click event handler when appropriate.

Public Events

ClickedThe event handler for the click gesture, if present.