KeyboardDevice.Focus(IInputElement) Metod

Definition

Anger tangentbordsfokus på den angivna 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

Parametrar

element
IInputElement

Elementet som fokus ska flyttas till.

Returer

Elementet som har tangentbordsfokus.

Attribut

Undantag

Gäller för