KeyEventArgs::Key Property
.NET Framework (current version)
Gets the keyboard key associated with the event.
Assembly: PresentationCore (in PresentationCore.dll)
The following example creates a KeyEventHandler and checks whether the key associated with the KeyEventArgs is the Return key.
.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: