KeyboardDevice.Focus(IInputElement) Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Nastaví fokus klávesnice na zadaném 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
Parametry
- element
- IInputElement
Prvek, na který chcete přesunout fokus.
Návraty
Prvek s fokusem klávesnice.
- Atributy
Výjimky
element není nebo UIElementContentElement.