KeyRoutedEventArgs.Key property

Applies to Windows and Windows Phone

Gets the keyboard key associated with the event.

Syntax


Public ReadOnly Property Key As VirtualKey

Property value

Type: VirtualKey

A system value that indicates the code for the key referenced by the event.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Input
Windows::UI::Xaml::Input [C++]

Metadata

Windows.winmd

See also

KeyRoutedEventArgs

 

 

Show:
© 2014 Microsoft