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

Definición

Cuando se invalida en una clase derivada, devuelve el elemento que recibiría el foco según la dirección de recorrido de foco especificada, sin mover realmente el foco a ese elemento.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

Parámetros

direction
FocusNavigationDirection FocusNavigationDirection FocusNavigationDirection FocusNavigationDirection

Dirección del recorrido de foco solicitado.The direction of the requested focus traversal.

Devoluciones

Elemento que recibiría el foco si se invocara MoveFocus(TraversalRequest) realmente.The element that would have received focus if MoveFocus(TraversalRequest) were actually invoked.

Comentarios

La implementación predeterminada de este método en esta clase está incompleta y siempre devuelve null.The default implementation of this method in this class is incomplete, and always returns null.

Se aplica a

Consulte también: