FocusNavigationDirection Enumeration
TOC
Collapse the table of content
Expand the table of content

FocusNavigationDirection Enumeration

 

Specifies the direction within a user interface (UI) in which a desired focus change request is attempted. The direction is either based on tab order or by relative direction in layout.

Namespace:   System.Windows.Input
Assembly:  WindowsBase (in WindowsBase.dll)

public enum FocusNavigationDirection

Member nameDescription
Down

Move focus to another focusable element downwards from the currently focused element.

First

Move focus to the first focusable element in tab order. Not supported for PredictFocus.

Last

Move focus to the last focusable element in tab order. Not supported for PredictFocus.

Left

Move focus to another focusable element to the left of the currently focused element.

Next

Move focus to the next focusable element in tab order. Not supported for PredictFocus.

Previous

Move focus to the previous focusable element in tab order. Not supported for PredictFocus.

Right

Move focus to another focusable element to the right of the currently focused element.

Up

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. Not all such directional movements are possible, depending on the relative layout of your UI.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft