Skip to main content

KeyboardNavigationMode Enum

Definition

Namespace:Avalonia.Input
Assembly:Avalonia.Base
Package:Avalonia

Defines the mode of keyboard traversal within a container when the tab or arrow keys are pressed.

public enum KeyboardNavigationMode

Inheritance: Enum -> KeyboardNavigationMode

Fields

NameDescription
ContainedItems in the container will be cycled through and focus will stop moving when the edge of the container is reached.
ContinueItems 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.
CycleItems 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.
LocalTabIndexes are considered on local subtree only inside this container
NoneThe container's children will not be focused when using the tab key.
OnceWhen 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