FocusNavigationDirection 列舉

定義

指定使用者介面 (UI) 內在嘗試需要的焦點變更要求時的方向。 該方向是以定位順序或以配置的相對方向為基礎。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
繼承
FocusNavigationDirection

欄位

Down 7

將焦點移至目前取得焦點之項目下面的其他可焦點化項目。Move focus to another focusable element downwards from the currently focused element.

First 2

將焦點移至定位順序中的第一個可焦點化項目。Move focus to the first focusable element in tab order. PredictFocus(FocusNavigationDirection) 上並不支援。Not supported for PredictFocus(FocusNavigationDirection).

Last 3

將焦點移至定位順序中的最後一個可焦點化項目。Move focus to the last focusable element in tab order. PredictFocus(FocusNavigationDirection) 上並不支援。Not supported for PredictFocus(FocusNavigationDirection).

Left 4

將焦點移至目前取得焦點之項目左邊的其他可焦點化項目。Move focus to another focusable element to the left of the currently focused element.

Next 0

將焦點移至定位順序中的下一個可焦點化項目。Move focus to the next focusable element in tab order. PredictFocus(FocusNavigationDirection) 上並不支援。Not supported for PredictFocus(FocusNavigationDirection).

Previous 1

將焦點移至定位順序中的上一個可焦點化項目。Move focus to the previous focusable element in tab order. PredictFocus(FocusNavigationDirection) 上並不支援。Not supported for PredictFocus(FocusNavigationDirection).

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.

備註

Left、Right、Down 和 Up 會根據呈現的視窗中相對專案位置的近似表示, 將焦點移至該方向。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.

適用於

另請參閱