KeyboardDevice.Focus(IInputElement) Metoda

Definicja

Ustawia fokus klawiatury na określonym IInputElementobiekcie .

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

Parametry

element
IInputElement

Element do przeniesienia fokusu do.

Zwraca

Element, który ma fokus klawiatury.

Atrybuty

Wyjątki

element nie jest elementem UIElement lub ContentElement.

Dotyczy