FocusNavigationDirection FocusNavigationDirection FocusNavigationDirection FocusNavigationDirection Enum

定义

指定用户界面 (UI) 内尝试所需焦点更改请求的方向。 该方向基于 Tab 键顺序,或者根据布局中的相关方向。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
继承
FocusNavigationDirectionFocusNavigationDirectionFocusNavigationDirectionFocusNavigationDirection

字段

Down Down Down Down 7

将焦点移至当前设定焦点的元素下部的另一个可获得焦点的元素。Move focus to another focusable element downwards from the currently focused element.

First First First First 2

按照 Tab 键顺序将焦点移至第一个可获得焦点的元素。Move focus to the first focusable element in tab order. 对于 PredictFocus(FocusNavigationDirection),不受支持。Not supported for PredictFocus(FocusNavigationDirection).

Last Last Last Last 3

按照 Tab 键顺序将焦点移至最后一个可获得焦点的元素。Move focus to the last focusable element in tab order. 对于 PredictFocus(FocusNavigationDirection),不受支持。Not supported for PredictFocus(FocusNavigationDirection).

Left Left Left Left 4

将焦点移至当前设定焦点的元素左侧的另一个可获得焦点的元素。Move focus to another focusable element to the left of the currently focused element.

Next Next Next Next 0

按照 Tab 键顺序将焦点移至下一个可获得焦点的元素。Move focus to the next focusable element in tab order. 对于 PredictFocus(FocusNavigationDirection),不受支持。Not supported for PredictFocus(FocusNavigationDirection).

Previous Previous Previous Previous 1

按照 Tab 键顺序将焦点移至前一个可获得焦点的元素。Move focus to the previous focusable element in tab order. 对于 PredictFocus(FocusNavigationDirection),不受支持。Not supported for PredictFocus(FocusNavigationDirection).

Right Right Right Right 5

将焦点移至当前设定焦点的元素右侧的另一个可获得焦点的元素。Move focus to another focusable element to the right of the currently focused element.

Up Up Up Up 6

将焦点移至当前设定焦点的元素上部的另一个可获得焦点的元素。Move focus to another focusable element upwards from the currently focused element.

注解

向左、向右、向下和向上键根据呈现的窗口中相对项位置的近似表示形式, 将焦点移动到该方向。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. 并非所有此类方向移动都是可能的, 具体取决于的UIUI相对布局。Not all such directional movements are possible, depending on the relative layout of your UIUI.

适用于

另请参阅