FocusManager.FindNextElement 方法

定义

重载

FindNextElement(FocusNavigationDirection)

检索应根据指定的导航方向接收焦点的元素。

FindNextElement(FocusNavigationDirection, FindNextElementOptions)

检索应基于指定导航方向接收焦点的元素, (不能与选项卡导航一起使用,请参阅注释) 。

FindNextElement(FocusNavigationDirection)

检索应根据指定的导航方向接收焦点的元素。

public:
 static DependencyObject ^ FindNextElement(FocusNavigationDirection focusNavigationDirection);
/// [Windows.Foundation.Metadata.Overload("FindNextElement")]
 static DependencyObject FindNextElement(FocusNavigationDirection const& focusNavigationDirection);
[Windows.Foundation.Metadata.Overload("FindNextElement")]
public static DependencyObject FindNextElement(FocusNavigationDirection focusNavigationDirection);
function findNextElement(focusNavigationDirection)
Public Shared Function FindNextElement (focusNavigationDirection As FocusNavigationDirection) As DependencyObject

参数

focusNavigationDirection
FocusNavigationDirection

焦点在应用 UI 中从元素移动到元素的方向。

返回

要接收焦点的下一个对象。

属性

注解

建议使用此方法而不是 FindNextFocusableElement (FocusNavigationDirection) FindNextFocusableElement检索一个 ,如果下一个UIElementUIElement可聚焦元素不是 ((例如 Hyperlink 对象) ),则返回 null

另请参阅

适用于

FindNextElement(FocusNavigationDirection, FindNextElementOptions)

检索应基于指定导航方向接收焦点的元素, (不能与选项卡导航一起使用,请参阅注释) 。

public:
 static DependencyObject ^ FindNextElement(FocusNavigationDirection focusNavigationDirection, FindNextElementOptions ^ focusNavigationOptions);
/// [Windows.Foundation.Metadata.Overload("FindNextElementWithOptions")]
 static DependencyObject FindNextElement(FocusNavigationDirection const& focusNavigationDirection, FindNextElementOptions const& focusNavigationOptions);
[Windows.Foundation.Metadata.Overload("FindNextElementWithOptions")]
public static DependencyObject FindNextElement(FocusNavigationDirection focusNavigationDirection, FindNextElementOptions focusNavigationOptions);
function findNextElement(focusNavigationDirection, focusNavigationOptions)
Public Shared Function FindNextElement (focusNavigationDirection As FocusNavigationDirection, focusNavigationOptions As FindNextElementOptions) As DependencyObject

参数

focusNavigationDirection
FocusNavigationDirection

焦点在应用 UI 中从元素移动到元素的方向。

focusNavigationOptions
FindNextElementOptions

用于帮助识别下一个元素以使用键盘/控制器/远程导航接收焦点的选项。

返回

要接收焦点的下一个对象。

属性

注解

建议使用此方法而不是 FindNextFocusableElement (FocusNavigationDirection) FindNextFocusableElement检索一个 ,如果下一个UIElementUIElement可聚焦元素不是 ((例如 Hyperlink 对象) ),则返回 null

Tab 导航 (FocusNavigationDirection.PreviousFocusNavigationDirection.Next) 不能与 FindNextElementOptions 一起使用。 只有 (FocusNavigationDirection.UpFocusNavigationDirection.DownFocusNavigationDirection.LeftFocusNavigationDirection.Right) 的方向导航有效。

另请参阅

适用于