Syntax
| Visual Basic (Declaration) |   | 
|---|
Public Event PreviewKeyDown As System.Windows.Input.KeyEventHandler  | 
 
| C# |   | 
|---|
public event System.Windows.Input.KeyEventHandler PreviewKeyDown  | 
 
 
            
Event Data
The event handler receives an argument of type System.Windows.Input.KeyEventArgs containing data related to this event. The following KeyEventArgs properties provide information specific to this event.
| Property | Description | 
|---|
| Handled  | Gets or sets a value that marks the routed event as handled. A true value for Handled prevents most handlers along the event route from handling the same event again. | 
| Key  | Gets the keyboard key associated with the event. | 
| OriginalSource (Inherited from System.Windows.RoutedEventArgs) |   | 
| PlatformKeyCode  | Gets an integer value that represents the key that is pressed or released (depending on which event is raised). This value is the nonportable key code, which is operating system–specific. | 
 
            
            
            
            
            
            
            
            
See Also