KeyEventArgs Constructor (KeyboardDevice, PresentationSource, Int32, Key)

 

Initializes a new instance of the KeyEventArgs class.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

[SecurityCriticalAttribute]
public KeyEventArgs(
	KeyboardDevice keyboard,
	PresentationSource inputSource,
	int timestamp,
	Key key
)

Parameters

keyboard
Type: System.Windows.Input.KeyboardDevice

The logical keyboard device associated with this event.

inputSource
Type: System.Windows.PresentationSource

The input source.

timestamp
Type: System.Int32

The time when the input occurred.

key
Type: System.Windows.Input.Key

The key referenced by the event.

.NET Framework
Available since 3.0
Return to top
Show: