Skip to content

Latest commit

 

History

History
39 lines (22 loc) · 1.91 KB

focusmanager_findnextfocusableelement_745990299.md

File metadata and controls

39 lines (22 loc) · 1.91 KB
-api-id -api-type
M:Windows.UI.Xaml.Input.FocusManager.FindNextFocusableElement(Windows.UI.Xaml.Input.FocusNavigationDirection)
winrt method

Windows.UI.Xaml.Input.FocusManager.FindNextFocusableElement

-description

Retrieves the element that should receive focus based on the specified navigation direction.

-parameters

-param focusNavigationDirection

The direction that focus moves from element to element within the application UI.

-returns

null if focus cannot be set in the specified direction.

-remarks

You can also use either the FindNextElement(FocusNavigationDirection, FindNextElementOptions) method or the FindNextElement(FocusNavigationDirection) method to programmatically move focus. These methods retrieve the element (as a DependencyObject) that will receive focus based on the specified navigation direction (directional navigation only, cannot be used to emulate tab navigation).

Note

We recommend using the FindNextElement method instead of FindNextFocusableElement because FindNextFocusableElement retrieves a UIElement, which returns null if the next focusable element is not a UIElement (such as a Hyperlink object).

-examples

-see-also

FindNextFocusableElement(FocusNavigationDirection, Rect), Keyboard interactions, Focus navigation for keyboard, gamepad, remote control, and accessibility tools, Programmatic focus navigation