KeyboardNavigationMode Enum
Definition
Defines the mode of keyboard traversal within a container when the tab or arrow keys are pressed.
public enum KeyboardNavigationMode
Fields
| Name | Description |
|---|---|
| Contained | Items in the container will be cycled through and focus will stop moving when the edge of the container is reached. |
| Continue | Items in the container will be cycled through, and focus will be moved to the previous/next container after the first/last control in the container. |
| Cycle | Items in the container will be cycled through, and moving past the first or last control in the container will cause the last/first control to be focused. |
| Local | TabIndexes are considered on local subtree only inside this container |
| None | The container's children will not be focused when using the tab key. |
| Once | When focus is moved into the container, the control described by the Avalonia.Input.KeyboardNavigation.TabOnceActiveElementProperty attached property on the container will be focused. When focus moves away from this control, focus will move to the previous/next container. |
Contained Field
Items in the container will be cycled through and focus will stop moving when the edge of the container is reached.
public Avalonia.Input.KeyboardNavigationMode Contained
Continue Field
Items in the container will be cycled through, and focus will be moved to the previous/next container after the first/last control in the container.
public Avalonia.Input.KeyboardNavigationMode Continue
Cycle Field
Items in the container will be cycled through, and moving past the first or last control in the container will cause the last/first control to be focused.
public Avalonia.Input.KeyboardNavigationMode Cycle
Local Field
TabIndexes are considered on local subtree only inside this container
public Avalonia.Input.KeyboardNavigationMode Local
None Field
The container's children will not be focused when using the tab key.
public Avalonia.Input.KeyboardNavigationMode None
Once Field
When focus is moved into the container, the control described by the Avalonia.Input.KeyboardNavigation.TabOnceActiveElementProperty attached property on the container will be focused. When focus moves away from this control, focus will move to the previous/next container.
public Avalonia.Input.KeyboardNavigationMode Once