FocusManager.

Focus(IInputElement, NavigationMethod, InputModifiers) Method

Summary

Focuses a control.
Namespace
Avalonia.Input
Containing Type
FocusManager

Syntax

public void Focus(IInputElement control, NavigationMethod method = Unspecified, InputModifiers modifiers = None)

Parameters

Name Type Description
control IInputElement The control to focus.
method NavigationMethod The method by which focus was changed.
modifiers InputModifiers Any input modifiers active at the time of focus.

Return Value

Type Description
void