Summary
Focuses a control.
- Namespace
- Avalonia
.Input - Containing Type
- IFocusManager
Syntax
void Focus(IInputElement? control, NavigationMethod method = Unspecified, KeyModifiers keyModifiers = None)
Parameters
Name | Type | Description |
---|---|---|
control | IInputElement? | The control to focus. |
method | NavigationMethod | The method by which focus was changed. |
keyModifiers | KeyModifiers | Any key modifiers active at the time of focus. |
Return Value
Type | Description |
---|---|
void |