This topic has not yet been rated - Rate this topic

Keyboard Methods

The Keyboard type exposes the following members.

  NameDescription
Public method Static member AddGotKeyboardFocusHandler Adds a handler for the Keyboard.GotKeyboardFocus attached event.
Public method Static member AddKeyDownHandler Adds a handler for the Keyboard.KeyDown attached event.
Public method Static member AddKeyUpHandler Adds a handler for the Keyboard.KeyUp attached event.
Public method Static member AddLostKeyboardFocusHandler Adds a handler for the Keyboard.LostKeyboardFocus attached event.
Public method Static member AddPreviewGotKeyboardFocusHandler Adds a handler for the Keyboard.PreviewGotKeyboardFocus attached event.
Public method Static member AddPreviewKeyDownHandler Adds a handler for the Keyboard.PreviewKeyDown attached event.
Public method Static member AddPreviewKeyUpHandler Adds a handler for the Keyboard.PreviewKeyUp attached event.
Public method Static member AddPreviewLostKeyboardFocusHandler Adds a handler for the Keyboard.PreviewLostKeyboardFocus attached event.
Public method Static member Focus Sets keyboard focus on the specified element.
Public method Static member GetKeyStates Gets the set of key states for the specified key.
Public method Static member IsKeyDown Determines whether the specified key is pressed.
Public method Static member IsKeyToggled Determines whether the specified key is toggled.
Public method Static member IsKeyUp Determines whether the specified key is released.
Public method Static member RemoveGotKeyboardFocusHandler Removes a handler for the Keyboard.GotKeyboardFocus attached event.
Public method Static member RemoveKeyDownHandler Removes a handler for the Keyboard.KeyDown attached event.
Public method Static member RemoveKeyUpHandler Removes a handler for the Keyboard.KeyUp attached event.
Public method Static member RemoveLostKeyboardFocusHandler Removes a handler for the Keyboard.LostKeyboardFocus attached event.
Public method Static member RemovePreviewGotKeyboardFocusHandler Removes a handler for the Keyboard.PreviewGotKeyboardFocus attached event.
Public method Static member RemovePreviewKeyDownHandler Removes a handler for the Keyboard.PreviewKeyDown attached event.
Public method Static member RemovePreviewKeyUpHandler Removes a handler for the Keyboard.PreviewKeyUp attached event.
Public method Static member RemovePreviewLostKeyboardFocusHandler Removes a handler for the Keyboard.PreviewLostKeyboardFocus attached event.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.