Share via


XYFocusKeyboardNavigationMode Enum

Definition

Specifies the 2D directional navigation behavior when using the keyboard arrow keys.

public enum class XYFocusKeyboardNavigationMode
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
enum class XYFocusKeyboardNavigationMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
public enum XYFocusKeyboardNavigationMode
Public Enum XYFocusKeyboardNavigationMode
Inheritance
XYFocusKeyboardNavigationMode
Attributes

Fields

Name Value Description
Auto 0

Behavior is inherited from the elements ancestors. If all ancestors have a value of Auto, the fallback behavior is Disabled.

Enabled 1

Arrow keys can be used for 2D directional navigation.

Disabled 2

Arrow keys cannot be used for 2D directional navigation.

Remarks

This enumeration is used by the UIElement.XYFocusKeyboardNavigation property.

2D directional navigation is used to navigate a user interface (UI) with a game controller or keyboard directional arrows. For more info, see Gamepad and remote control interactions and UIElement.XYFocusKeyboardNavigation.

Applies to