FocusNavigationDirection
June 22, 2022 ยท View on GitHub
-description
Specifies the direction that you can programmatically move focus from one element to another element within the app UI.
-enum-fields
-field Next:0
The next element in the tab order.
-field Previous:1
The previous element in the tab order.
-field Up:2
An element above the element with focus.
Not supported in Windows 8 apps and Windows Phone apps.
-field Down:3
An element below the element with focus.
Not supported in Windows 8 apps and Windows Phone apps.
-field Left:4
An element to the left of the element with focus.
Not supported in Windows 8 apps and Windows Phone apps.
-field Right:5
An element to the right of the element with focus.
Not supported in Windows 8 apps and Windows Phone apps.
-field None:6
No change in focus.
Not supported in Windows 8 apps and Windows Phone apps.
-remarks
FocusNavigationDirection.Previous and FocusNavigationDirection.Next cannot be used with FindNextElementOptions. Only FocusNavigationDirection.Up, FocusNavigationDirection.Down, FocusNavigationDirection.Left, or FocusNavigationDirection.Right are valid.
-examples
-see-also
TryMoveFocus, Keyboard interactions, Focus navigation for keyboard, gamepad, remote control, and accessibility tools, Programmatic focus navigation