Rediger

Del via


FocusNavigationDirection Enum

Definition

Specifies the direction within a user interface (UI) in which a desired focus change request is attempted. The direction is either based on tab order or by relative direction in layout.

public enum class FocusNavigationDirection
public enum FocusNavigationDirection
type FocusNavigationDirection = 
Public Enum FocusNavigationDirection
Inheritance
FocusNavigationDirection

Fields

Name Value Description
Next 0

Move focus to the next focusable element in tab order. Not supported for PredictFocus(FocusNavigationDirection).

Previous 1

Move focus to the previous focusable element in tab order. Not supported for PredictFocus(FocusNavigationDirection).

First 2

Move focus to the first focusable element in tab order. Not supported for PredictFocus(FocusNavigationDirection).

Last 3

Move focus to the last focusable element in tab order. Not supported for PredictFocus(FocusNavigationDirection).

Left 4

Move focus to another focusable element to the left of the currently focused element.

Right 5

Move focus to another focusable element to the right of the currently focused element.

Up 6

Move focus to another focusable element upwards from the currently focused element.

Down 7

Move focus to another focusable element downwards from the currently focused element.

Remarks

Left, Right, Down, and Up each move focus in that direction based on an approximate representation of the relative item positions in the rendered window. Not all such directional movements are possible, depending on the relative layout of your UI.

Applies to

See also