Export (0) Print
Expand All

Key Property

Gets the keyboard key associated with the event.

XAML
This property cannot be used in XAML.
Scripting
value = eventargs.Key

Property Value

Key

The Key referenced by the event.

This property is read/write, but should be considered read-only because there is no reason to change the reported information. There is no default.

Remarks

Key codes have possible platform variations. For details see Silverlight Keyboard Support.

Check Ctrl and Shift to determine if the key event is a key combination.

Applies To

KeyboardEventArgs

See Also

Silverlight Keyboard Support
Silverlight Events

Community Additions

Show:
© 2015 Microsoft