VisualElement.IsFocused Property

Definition

Gets a value indicating whether this element is focused currently. This is a bindable property.

public:
 property bool IsFocused { bool get(); };
public bool IsFocused { get; }
member this.IsFocused : bool
Public ReadOnly Property IsFocused As Boolean

Property Value

true if the element is focused; otherwise, false.

Remarks

Applications may have multiple focuses depending on the implementation of the underlying platform. Menus and modals in particular may leave multiple items with focus.

Applies to