Skip to content

UIElement.IsFocusWithin property

Gets whether this element or any of its descendants has keyboard focus.

public bool IsFocusWithin { get; }

Container visuals (a tab control outline, for example) and container-level focus navigation read this.