XamlSourceFocusNavigationReason Enum

Definition

Specifies values that represent reasons that a UIElement got focus in a desktop application that uses a DesktopWindowXamlSource object to host XAML-based UI.

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

Fields

Name Value Description
Programmatic 0

The focus was set programmatically.

Restore 1

The focus was restored after a task switch, such as pressing Alt + Tab.

First 3

The focus was set in response to the user navigating to the next element by using bidirectional navigation, such as pressing Tab.

Last 4

The focus was set in response to the user navigating to the previous element by using bidirectional navigation, such as pressing Shift-Tab.

Left 7

The focus was set in response to the user navigating left by using 4-direction navigation, such as pressing keyboard arrow keys.

Up 8

The focus was set in response to the user navigating up by using 4-direction navigation, such as pressing keyboard arrow keys.

Right 9

The focus was set in response to the user navigating right by using 4-direction navigation, such as pressing keyboard arrow keys.

Down 10

The focus was set in response to the user navigating down by using 4-direction navigation, such as pressing keyboard arrow keys.

Applies to

See also