KeyboardDevice.Focus(IInputElement) Método

Definición

Establece el foco del teclado en el objeto IInputElement especificado.

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 mueve el foco.

Devoluciones

El elemento que tiene el foco de teclado.

Atributos

Excepciones

Se aplica a