Share via


VisualElement.SetCanBecomeFirstResponder Method

Definition

Overloads

SetCanBecomeFirstResponder(BindableObject, Boolean)

Sets whether this element can become the first responder to touch events, rather than the page containing the element.

SetCanBecomeFirstResponder(IPlatformElementConfiguration<iOS,VisualElement>, Boolean)

Sets whether this element can become the first responder to touch events, rather than the page containing the element.

SetCanBecomeFirstResponder(BindableObject, Boolean)

Source:
VisualElement.cs
Source:
VisualElement.cs

Sets whether this element can become the first responder to touch events, rather than the page containing the element.

public:
 static void SetCanBecomeFirstResponder(Microsoft::Maui::Controls::BindableObject ^ element, bool value);
public static void SetCanBecomeFirstResponder (Microsoft.Maui.Controls.BindableObject element, bool value);
static member SetCanBecomeFirstResponder : Microsoft.Maui.Controls.BindableObject * bool -> unit
Public Sub SetCanBecomeFirstResponder (element As BindableObject, value As Boolean)

Parameters

element
BindableObject

The platform specific element on which to perform the operation.

value
Boolean

true to set this element as the first responder. Otherwise, false.

Applies to

SetCanBecomeFirstResponder(IPlatformElementConfiguration<iOS,VisualElement>, Boolean)

Source:
VisualElement.cs
Source:
VisualElement.cs

Sets whether this element can become the first responder to touch events, rather than the page containing the element.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::iOS ^, Microsoft::Maui::Controls::VisualElement ^> ^ SetCanBecomeFirstResponder(Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::iOS ^, Microsoft::Maui::Controls::VisualElement ^> ^ config, bool value);
public static Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.iOS,Microsoft.Maui.Controls.VisualElement> SetCanBecomeFirstResponder (this Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.iOS,Microsoft.Maui.Controls.VisualElement> config, bool value);
static member SetCanBecomeFirstResponder : Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.iOS, Microsoft.Maui.Controls.VisualElement> * bool -> Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.iOS, Microsoft.Maui.Controls.VisualElement>
<Extension()>
Public Function SetCanBecomeFirstResponder (config As IPlatformElementConfiguration(Of iOS, VisualElement), value As Boolean) As IPlatformElementConfiguration(Of iOS, VisualElement)

Parameters

config
IPlatformElementConfiguration<iOS,VisualElement>

The platform specific configuration that contains the element on which to perform the operation.

value
Boolean

true to set this element as the first responder. Otherwise, false.

Returns

A fluent object on which the developer may make further method calls.

Applies to