Abstract class that represents a keyboard device.
Assembly: PresentationCore (in PresentationCore.dll)
Gets or sets the behavior of Windows Presentation Foundation (WPF) when restoring focus.
Gets the element that has keyboard focus.
Gets the set of ModifierKeys which are currently pressed.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Sets keyboard focus on the specified IInputElement.
Serves as the default hash function. (Inherited from Object.)
Gets the set of key states for the specified Key.
Determines whether the specified Key is in the down state.
Determines whether the specified Key is in the toggled state.
Determines whether the specified Key is in the up state.
Returns a string that represents the current object.(Inherited from Object.)
Thesupports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
The Keyboard class delegates to the appropriate .
Available since 3.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.