CoreComponentInputSource.HasFocus Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.