AutomationPeer.HasKeyboardFocus Method

Definition

Gets a value that indicates whether the element that is associated with this automation peer currently has keyboard focus.

C#
public bool HasKeyboardFocus();

Returns

Boolean

true if the element has keyboard focus; otherwise, false.

Applies to

Продукт Версії
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6