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 检索 UIElement,如果下一个可聚焦元素不是 UIElement(如 超链接 对象),则返回 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 检索 UIElement,如果下一个可聚焦元素不是 UIElement(如 超链接 对象),则返回 null

Tab 导航(FocusNavigationDirection.PreviousFocusNavigationDirection.Next) 不能用于 FindNextElementOptions。 仅方向导航(FocusNavigationDirection.UpFocusNavigationDirection.DownFocusNavigationDirection.LeftFocusNavigationDirection.Right) 有效。

另请参阅

适用于