共用方式為


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 內的元素方向。

傳回

要接收焦點的下一個物件。

屬性

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

備註

我們建議使用此方法 ,而不是 FindNextFocusableElement (FocusNavigationDirection) 。 FindNextFocusableElement 會擷取 UIElement,如果下一個可設定焦點的專案不是 UIElement (,例如 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

可協助識別下一個專案以鍵盤/控制器/遠端流覽接收焦點的選項。

傳回

要接收焦點的下一個物件。

屬性

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

備註

我們建議使用此方法 ,而不是 FindNextFocusableElement (FocusNavigationDirection) 。 FindNextFocusableElement 會擷取 UIElement,如果下一個可設定焦點的專案不是 UIElement (,例如 Hyperlink 物件) ,則會傳回 null。

Tab 流覽 (FocusNavigationDirection.PreviousFocusNavigationDirection.Next) 無法與 FindNextElementOptions搭配使用。 只有方向導覽 (FocusNavigationDirection.UpFocusNavigationDirection.DownFocusNavigationDirection.LeftFocusNavigationDirection.Right) 有效。

另請參閱

適用於