Skip to content

FocusManager class

Manages keyboard focus within a window.

public sealed class FocusManager
name description
FocusedElement { get; } Gets the currently focused element.
ClearFocus() Clears focus from the current element.
MoveFocusNext() Moves focus to the next focusable element.
MoveFocusPrevious() Moves focus to the previous focusable element.
SetFocus(…) Sets focus to the specified element after resolving its default focus target; returns false when the element cannot take focus. (2 methods)