IInputElement.Focus Method ()


Attempts to focus the keyboard on this element.

Namespace:   System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)

bool Focus()

Return Value

Type: System.Boolean

true if keyboard focus is moved to this element or already was on this element; otherwise, false.

This interface is not intended for public implementation. For more information, see remarks for the IInputElement interface.

.NET Framework
Available since 3.0
Return to top