Keyboard Methods

The Keyboard type exposes the following members.

  Name Description
Public method Static member AddGotKeyboardFocusHandler Adds a handler for the Keyboard.GotKeyboardFocus attached event.
Public method Static member AddKeyboardInputProviderAcquireFocusHandler Adds a handler for the Keyboard.KeyboardInputProviderAcquireFocus 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 AddPreviewKeyboardInputProviderAcquireFocusHandler Adds a handler for the Keyboard.PreviewKeyboardInputProviderAcquireFocus 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 ClearFocus Clears focus.
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 RemoveKeyboardInputProviderAcquireFocusHandler Removes a handler for the Keyboard.KeyboardInputProviderAcquireFocus 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 RemovePreviewKeyboardInputProviderAcquireFocusHandler Removes a handler for the Keyboard.PreviewKeyboardInputProviderAcquireFocus 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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft