VisualElement.GetCanBecomeFirstResponder(BindableObject) 方法

定义

获取此元素是否可以成为触摸事件的第一个响应者,而不是包含该元素的页面。

public:
 static bool GetCanBecomeFirstResponder(Microsoft::Maui::Controls::BindableObject ^ element);
public static bool GetCanBecomeFirstResponder (Microsoft.Maui.Controls.BindableObject element);
static member GetCanBecomeFirstResponder : Microsoft.Maui.Controls.BindableObject -> bool
Public Function GetCanBecomeFirstResponder (element As BindableObject) As Boolean

参数

element
BindableObject

要对其执行操作的特定于平台的元素。

返回

true 如果此元素可以成为第一响应方,则为 。 否则为 false

适用于