共用方式為


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 (例如 Hyperlink 物件)。

另請參閱

適用於

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 (例如 Hyperlink 物件)。

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

另請參閱

適用於