KeyEventArgs(KeyboardDevice, PresentationSource, Int32, Key) KeyEventArgs(KeyboardDevice, PresentationSource, Int32, Key) KeyEventArgs(KeyboardDevice, PresentationSource, Int32, Key) Constructor

Definition

Initializes a new instance of the KeyEventArgs class.

public:
 KeyEventArgs(System::Windows::Input::KeyboardDevice ^ keyboard, System::Windows::PresentationSource ^ inputSource, int timestamp, System::Windows::Input::Key key);
[System.Security.SecurityCritical]
public KeyEventArgs (System.Windows.Input.KeyboardDevice keyboard, System.Windows.PresentationSource inputSource, int timestamp, System.Windows.Input.Key key);
new System.Windows.Input.KeyEventArgs : System.Windows.Input.KeyboardDevice * System.Windows.PresentationSource * int * System.Windows.Input.Key -> System.Windows.Input.KeyEventArgs

Parameters

keyboard
KeyboardDevice KeyboardDevice KeyboardDevice

The logical keyboard device associated with this event.

timestamp
Int32 Int32 Int32

The time when the input occurred.

key
Key Key Key

The key referenced by the event.

Applies to

See also