KeyEventArgs Constructor

Initializes a new instance of the KeyEventArgs class.

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

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft