KeyboardDevice.Focus(IInputElement) Methode

Definitie

Hiermee stelt u de toetsenbordfocus in op de opgegeven 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

Parameters

element
IInputElement

Het element waar de focus naar moet worden verplaatst.

Retouren

Het element met toetsenbordfocus.

Kenmerken

Uitzonderingen

Van toepassing op