CoreComponentInputSource.HasFocus Property

Definition

Gets whether the current hosted XAML control element has focus. If it does, keyboard input is delivered to that control.

public:
 property bool HasFocus { bool get(); };
bool HasFocus();
public bool HasFocus { get; }
var boolean = coreComponentInputSource.hasFocus;
Public ReadOnly Property HasFocus As Boolean

Property Value

Boolean

bool

true if the element has focus; false if it does not.

Applies to