'Declaration Public Event PreviewKeyDown As KeyEventHandler
'Usage Dim instance As DropDownItemBaseControl Dim handler As KeyEventHandler AddHandler instance.PreviewKeyDown, handler
public event KeyEventHandler PreviewKeyDown
Event Data
The event handler receives an argument of type KeyEventArgs containing data related to this event. The following KeyEventArgs properties provide information specific to this event.
Property | Description |
---|---|
DeadCharProcessedKey | Gets the key that is part of dead key composition to create a single combined character. |
Device | (Inherited from System.Windows.Input.InputEventArgs) |
Handled | (Inherited from System.Windows.RoutedEventArgs) |
ImeProcessedKey | Gets the keyboard key referenced by the event, if the key will be processed by an Input Method Editor (IME). |
InputSource | Gets the input source that provided this input. |
IsDown | Gets a value that indicates whether the key referenced by the event is in the down state. |
IsRepeat | Gets a value that indicates whether the keyboard key referenced by the event is a repeated key. |
IsToggled | Gets a value that indicates whether the key referenced by the event is in the toggled state. |
IsUp | Gets a value that indicates whether the key referenced by the event is in the up state. |
Key | Gets the keyboard key associated with the event. |
KeyboardDevice | (Inherited from System.Windows.Input.KeyboardEventArgs) |
KeyStates | Gets the state of the keyboard key associated with this event. |
OriginalSource | (Inherited from System.Windows.RoutedEventArgs) |
RoutedEvent | (Inherited from System.Windows.RoutedEventArgs) |
Source | (Inherited from System.Windows.RoutedEventArgs) |
SystemKey | Gets the keyboard key referenced by the event, if the key will be processed by the system. |
Timestamp | (Inherited from System.Windows.Input.InputEventArgs) |
See Also