UIElement.PredictFocus(FocusNavigationDirection) UIElement.PredictFocus(FocusNavigationDirection) UIElement.PredictFocus(FocusNavigationDirection) UIElement.PredictFocus(FocusNavigationDirection) Method

定義

派生クラスでオーバーライドされると、指定したフォーカス検査方向のフォーカスを受け取ることになる要素を返します。実際にはフォーカスはその要素に移動しません。When overridden in a derived class, returns the element that would receive focus for a specified focus traversal direction, without actually moving focus to that element.

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 FocusNavigationDirection FocusNavigationDirection FocusNavigationDirection

要求したフォーカス検査の方向。The direction of the requested focus traversal.

戻り値

MoveFocus(TraversalRequest) が実際に呼び出された場合にフォーカスを受け取る要素。The element that would have received focus if MoveFocus(TraversalRequest) were actually invoked.

注釈

このクラスでこのメソッドの既定の実装が完了していないと、常に返しますnullします。The default implementation of this method in this class is incomplete, and always returns null.

適用対象

こちらもご覧ください