Abstract class that represents a keyboard device.
Assembly: PresentationCore (in PresentationCore.dll)
Thetype exposes the following members.
|ActiveSource||Gets the PresentationSource that is reporting input for this device. (Overrides InputDevice.ActiveSource.)|
|DefaultRestoreFocusMode||Gets or sets the behavior of Windows Presentation Foundation (WPF) when restoring focus.|
|Dispatcher||Gets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.)|
|FocusedElement||Gets the element that has keyboard focus.|
|Modifiers||Gets the set of ModifierKeys which are currently pressed.|
|Target||Gets the specified IInputElement that input from this device is sent to. (Overrides InputDevice.Target.)|
|CheckAccess||Determines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)|
|Equals(Object)||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|Focus||Sets keyboard focus on the specified IInputElement.|
|GetHashCode||Serves as the default hash function. (Inherited from Object.)|
|GetKeyStates||Gets the set of key states for the specified Key.|
|GetKeyStatesFromSystem||When overridden in a derived class, obtains the KeyStates for the specified Key.|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|IsKeyDown||Determines whether the specified Key is in the down state.|
|IsKeyToggled||Determines whether the specified Key is in the toggled state.|
|IsKeyUp||Determines whether the specified Key is in the up state.|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
|VerifyAccess||Enforces that the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)|
The supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
The Keyboard class delegates to the appropriate .
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.