FocusManager Class

Summary

Manages focus for the application.
Namespace
Avalonia.Input
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["IFocusManager"] click Interface0 "/api/Avalonia.Input/IFocusManager" Type["FocusManager"] class Type type-node

Syntax

public class FocusManager : IFocusManager

Properties

Name Value Summary
Current IInputElement?
Gets the currently focused IInputElement.
Instance IFocusManager
Gets the instance of the IFocusManager.
static
Scope IFocusScope?
Gets the current focus scope.

Methods

Name Value Summary
Focus(IInputElement?, NavigationMethod, KeyModifiers) void
Focuses a control.
SetFocusedElement(IFocusScope, IInputElement?, NavigationMethod, KeyModifiers) void
Sets the currently focused element in the specified scope.
SetFocusScope(IFocusScope) void
Notifies the focus manager of a change in focus scope.