共用方式為


ContentElement.PredictFocus(FocusNavigationDirection) 方法

定義

在衍生類別中覆寫時,傳回會針對指定之焦點周遊方向接收焦點的項目,而不用實際將焦點移至該項目。

public:
 virtual System::Windows::DependencyObject ^ PredictFocus(System::Windows::Input::FocusNavigationDirection direction);
public virtual System.Windows.DependencyObject PredictFocus (System.Windows.Input.FocusNavigationDirection direction);
abstract member PredictFocus : System.Windows.Input.FocusNavigationDirection -> System.Windows.DependencyObject
override this.PredictFocus : System.Windows.Input.FocusNavigationDirection -> System.Windows.DependencyObject
Public Overridable Function PredictFocus (direction As FocusNavigationDirection) As DependencyObject

參數

direction
FocusNavigationDirection

要求的焦點周遊方向。

傳回

DependencyObject

如果實際上有叫用 MoveFocus(TraversalRequest),就會取得焦點的項目。

備註

這個類別中這個方法的預設實作不完整,而且一律會傳 null 回 。

適用於

另請參閱