KeyboardDevice.Focus(IInputElement) Método

Definición

Establece el foco de teclado en el especificado IInputElement.

public:
 System::Windows::IInputElement ^ Focus(System::Windows::IInputElement ^ element);
public System.Windows.IInputElement Focus(System.Windows.IInputElement element);
[System.Security.SecurityCritical]
public System.Windows.IInputElement Focus(System.Windows.IInputElement element);
member this.Focus : System.Windows.IInputElement -> System.Windows.IInputElement
[<System.Security.SecurityCritical>]
member this.Focus : System.Windows.IInputElement -> System.Windows.IInputElement
Public Function Focus (element As IInputElement) As IInputElement

Parámetros

element
IInputElement

Elemento al que se va a mover el foco.

Devoluciones

Elemento que tiene el foco del teclado.

Atributos

Excepciones

Se aplica a