XYFocusKeyboardNavigationMode Enum


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)]
/// [Windows.Foundation.Metadata.WebHostHidden]
enum XYFocusKeyboardNavigationMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
public enum XYFocusKeyboardNavigationMode
Public Enum XYFocusKeyboardNavigationMode
Windows.Foundation.Metadata.ContractVersionAttribute Windows.Foundation.Metadata.WebHostHiddenAttribute


Auto 0

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

Disabled 2

Arrow keys cannot be used for 2D directional navigation.

Enabled 1

Arrow keys can be used for 2D directional navigation.


This enumeration is used by the UIElement.XYFocusKeyboardNavigation property.

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

Applies to

See also