View.GestureRecognizers 属性

定义

与此视图关联的手势识别器的集合。

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)

属性值

的列表 IGestureRecognizer

实现

注解

向此集合添加项会将手势事件与此元素相关联。 不建议为元素已本机支持的手势添加手势识别器。

例如,将 添加到 TapGestureRecognizer 可能会导致 Button 意外结果。

适用于