共用方式為


FocusEventArgs(VisualElement, Boolean) Constructor

Definition

Constructs and initializes a new instance of the FocusEventArgs class.

public:
 FocusEventArgs(Microsoft::Maui::Controls::VisualElement ^ visualElement, bool isFocused);
public FocusEventArgs (Microsoft.Maui.Controls.VisualElement visualElement, bool isFocused);
new Microsoft.Maui.Controls.FocusEventArgs : Microsoft.Maui.Controls.VisualElement * bool -> Microsoft.Maui.Controls.FocusEventArgs
Public Sub New (visualElement As VisualElement, isFocused As Boolean)

Parameters

visualElement
VisualElement

The VisualElement whose focused was changed.

isFocused
Boolean

Whether or not the visualElement was focused.

Applies to