FocusNavigationDirection Enum

Definition

Specifies the direction that you can programmatically move focus from one element to another element within the app UI.

C#
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
public enum FocusNavigationDirection
Inheritance
FocusNavigationDirection
Attributes

Fields

Name Value Description
Next 0

The next element in the tab order.

Previous 1

The previous element in the tab order.

Up 2

An element above the element with focus.

Down 3

An element below the element with focus.

Left 4

An element to the left of the element with focus.

Right 5

An element to the right of the element with focus.

None 6

No change in focus.

Remarks

FocusNavigationDirection.Previous and FocusNavigationDirection.Next cannot be used with FindNextElementOptions. Only FocusNavigationDirection.Up, FocusNavigationDirection.Down, FocusNavigationDirection.Left, or FocusNavigationDirection.Right are valid.

Applies to

Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6

See also