IInputElement.IsKeyboardFocused Property


Gets a value that indicates whether this element has keyboard focus.

public bool IsKeyboardFocused { get; }
Property Value

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


This interface is not intended for public implementation. For more information, see remarks for the IInputElement interface.

Existing implementations in the Windows Presentation Foundation (WPF) core (see ContentElement.IsKeyboardFocused and UIElement.IsKeyboardFocused) establish this property as a dependency property.

Applies to