KeyboardDevice.Focus(IInputElement) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets keyboard focus on the specified 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
The element to move focus to.
Returns
The element that has keyboard focus.
- Attributes
Exceptions
element
is not a UIElement or ContentElement.
Applies to
Werk met ons samen op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en bekijken. Raadpleeg onze gids voor inzenders voor meer informatie.