KeyEventArgs Properties

The KeyEventArgs type exposes the following members.

  NameDescription
Public property Device Gets the input device that initiated this event. (Inherited from InputEventArgs.)
Public property Handled Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route. (Inherited from RoutedEventArgs.)
Public property ImeProcessedKey Gets the keyboard key referenced by the event, if the key will be processed by an Input Method Editor (IME).
Public property InputSource Gets the input source that provided this input.
Public property IsDown Gets a value that indicates whether the key referenced by the event is in the down state.
Public property IsRepeat Gets a value that indicates whether the keyboard key referenced by the event is a repeated key.
Public property IsToggled Gets a value that indicates whether the key referenced by the event is in the toggled state.
Public property IsUp Gets a value that indicates whether the key referenced by the event is in the up state.
Public property Key Gets the keyboard key associated with the event.
Public property KeyboardDevice Gets the keyboard device associated with the input event. (Inherited from KeyboardEventArgs.)
Public property KeyStates Gets the state of the keyboard key associated with this event.
Public property OriginalSource Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class. (Inherited from RoutedEventArgs.)
Public property RoutedEvent Gets or sets the RoutedEvent associated with this RoutedEventArgs instance. (Inherited from RoutedEventArgs.)
Public property Source Gets or sets a reference to the object that raised the event. (Inherited from RoutedEventArgs.)
Public property SystemKey Gets the keyboard key referenced by the event, if the key will be processed by the system.
Public property Timestamp Gets the time when this event occurred. (Inherited from InputEventArgs.)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft