Partilhar via


KeyboardDevice.Focus(IInputElement) Método

Definição

Determina o foco do teclado no 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

O elemento para o qual mover o foco.

Retornos

O elemento que tem o foco do teclado.

Atributos

Exceções

Aplica-se a