Condividi tramite


KeyboardDevice.Focus(IInputElement) Metodo

Definizione

Imposta lo stato attivo sull'elemento IInputElement specificato.

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

Parametri

element
IInputElement

Elemento sul quale spostare lo stato attivo.

Valori restituiti

Elemento che ha lo stato attivo.

Attributi

Eccezioni

element non è un oggetto UIElementContentElement.

Si applica a