This documentation is archived and is not being maintained.

Keyboard Members

Represents the keyboard device.

The following tables list the members exposed by the Keyboard type.

  Name Description
Public field Static GotKeyboardFocusEvent Identifies the Keyboard.GotKeyboardFocus attached event.
Public field Static KeyDownEvent Identifies the Keyboard.KeyDown attached event.
Public field Static KeyUpEvent Identifies the Keyboard.KeyUp attached event.
Public field Static LostKeyboardFocusEvent Identifies the Keyboard.LostKeyboardFocus attached event.
Public field Static PreviewGotKeyboardFocusEvent Identifies the Keyboard.PreviewGotKeyboardFocus attached event.
Public field Static PreviewKeyDownEvent Identifies the Keyboard.PreviewKeyDown attached event.
Public field Static PreviewKeyUpEvent Identifies the Keyboard.PreviewKeyUp attached event.
Public field Static PreviewLostKeyboardFocusEvent Identifies the Keyboard.PreviewLostKeyboardFocus attached event.
Top

  Name Description
Public property Static FocusedElement Gets the element that has keyboard focus.
Public property Static Modifiers Gets the set of ModifierKeys which are currently pressed.
Public property Static PrimaryDevice Gets the primary keyboard input device.
Top

(see also Protected Methods )
  Name Description
Public method Static AddGotKeyboardFocusHandler Adds a handler for the Keyboard.GotKeyboardFocus attached event.
Public method Static AddKeyDownHandler Adds a handler for the Keyboard.KeyDown attached event.
Public method Static AddKeyUpHandler Adds a handler for the Keyboard.KeyUp attached event.
Public method Static AddLostKeyboardFocusHandler Adds a handler for the Keyboard.LostKeyboardFocus attached event.
Public method Static AddPreviewGotKeyboardFocusHandler Adds a handler for the Keyboard.PreviewGotKeyboardFocus attached event.
Public method Static AddPreviewKeyDownHandler Adds a handler for the Keyboard.PreviewKeyDown attached event.
Public method Static AddPreviewKeyUpHandler Adds a handler for the Keyboard.PreviewKeyUp attached event.
Public method Static AddPreviewLostKeyboardFocusHandler Adds a handler for the Keyboard.PreviewLostKeyboardFocus attached event.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method Static Focus Sets keyboard focus on the specified element.
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method Static GetKeyStates Gets the set of key states for the specified key.
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method Static IsKeyDown Determines whether or not the specified key is pressed.
Public method Static IsKeyToggled Determines whether or not the specified key is toggled.
Public method Static IsKeyUp Determines whether or not the specified key is released.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Static RemoveGotKeyboardFocusHandler Removes a handler for the Keyboard.GotKeyboardFocus attached event.
Public method Static RemoveKeyDownHandler Removes a handler for the Keyboard.KeyDown attached event.
Public method Static RemoveKeyUpHandler Removes a handler for the Keyboard.KeyUp attached event.
Public method Static RemoveLostKeyboardFocusHandler Removes a handler for the Keyboard.LostKeyboardFocus attached event.
Public method Static RemovePreviewGotKeyboardFocusHandler Removes a handler for the Keyboard.PreviewGotKeyboardFocus attached event.
Public method Static RemovePreviewKeyDownHandler Removes a handler for the Keyboard.PreviewKeyDown attached event.
Public method Static RemovePreviewKeyUpHandler Removes a handler for the Keyboard.PreviewKeyUp attached event.
Public method Static RemovePreviewLostKeyboardFocusHandler Removes a handler for the Keyboard.PreviewLostKeyboardFocus attached event.
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Top

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top

  Name Description
Public event Static GotKeyboardFocus Occurs when an element receives keyboard focus.
Public event Static KeyDown Occurs when a key on the keyboard is pressed.
Public event Static KeyUp Occurs when a key on the keyboard is released.
Public event Static LostKeyboardFocus Occurs when an element loses keyboard focus.
Public event Static PreviewGotKeyboardFocus Occurs when an element is in the process of acquiring keyboard focus.
Public event Static PreviewKeyDown Occurs when a key on the keyboard is pressed.
Public event Static PreviewKeyUp Occurs when a key on the keyboard is released.
Public event Static PreviewLostKeyboardFocus Occurs when an element is in the process of losing keyboard focus.
Top
Show: