Share via


View.GestureRecognizers Property

Definition

The collection of gesture recognizers associated with this view.

public:
 property System::Collections::Generic::IList<Microsoft::Maui::Controls::IGestureRecognizer ^> ^ GestureRecognizers { System::Collections::Generic::IList<Microsoft::Maui::Controls::IGestureRecognizer ^> ^ get(); };
public System.Collections.Generic.IList<Microsoft.Maui.Controls.IGestureRecognizer> GestureRecognizers { get; }
member this.GestureRecognizers : System.Collections.Generic.IList<Microsoft.Maui.Controls.IGestureRecognizer>
Public ReadOnly Property GestureRecognizers As IList(Of IGestureRecognizer)

Property Value

Implements

Remarks

Adding items to this collection will associate gesture events with this element. It is not recommended to add gesture recognizers for gestures that elements already natively support.

For example, adding a TapGestureRecognizer to a Button may lead to unexpected results.

Applies to