Freigeben über


Key Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Specifies the possible key values on a keyboard.

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

Syntax

'Declaration
Public Enumeration Key
public enum Key
<object property="enumMemberName"/>

Members

Member name Description
Supported by Silverlight for Windows Phone None A special value indicating no key.
Supported by Silverlight for Windows Phone Back The BACKSPACE key.
Supported by Silverlight for Windows Phone Tab The TAB key.
Supported by Silverlight for Windows Phone Enter The ENTER key.
Supported by Silverlight for Windows Phone Shift The SHIFT key.
Supported by Silverlight for Windows Phone Ctrl The CTRL (control) key.
Supported by Silverlight for Windows Phone Alt The ALT key.
Supported by Silverlight for Windows Phone CapsLock The CAPSLOCK key.
Supported by Silverlight for Windows Phone Escape The ESC (also known as ESCAPE) key.
Supported by Silverlight for Windows Phone Space The SPACE key.
Supported by Silverlight for Windows Phone PageUp The PAGEUP key.
Supported by Silverlight for Windows Phone PageDown The PAGEDOWN key.
Supported by Silverlight for Windows Phone End The END key.
Supported by Silverlight for Windows Phone Home The HOME key.
Supported by Silverlight for Windows Phone Left The left arrow key.
Supported by Silverlight for Windows Phone Up The up arrow key.
Supported by Silverlight for Windows Phone Right The right arrow key.
Supported by Silverlight for Windows Phone Down The down arrow key.
Supported by Silverlight for Windows Phone Insert The INSERT key.
Supported by Silverlight for Windows Phone Delete The DEL (also known as DELETE) key.
Supported by Silverlight for Windows Phone D0 The 0 (zero) key.
Supported by Silverlight for Windows Phone D1 The 1 key.
Supported by Silverlight for Windows Phone D2 The 2 key.
Supported by Silverlight for Windows Phone D3 The 3 key.
Supported by Silverlight for Windows Phone D4 The 4 key.
Supported by Silverlight for Windows Phone D5 The 5 key.
Supported by Silverlight for Windows Phone D6 The 6 key.
Supported by Silverlight for Windows Phone D7 The 7 key.
Supported by Silverlight for Windows Phone D8 The 8 key.
Supported by Silverlight for Windows Phone D9 The 9 key.
Supported by Silverlight for Windows Phone A The A key.
Supported by Silverlight for Windows Phone B The B key.
Supported by Silverlight for Windows Phone C The C key.
Supported by Silverlight for Windows Phone D The D key.
Supported by Silverlight for Windows Phone E The E key.
Supported by Silverlight for Windows Phone F The F key.
Supported by Silverlight for Windows Phone G The G key.
Supported by Silverlight for Windows Phone H The H key.
Supported by Silverlight for Windows Phone I The I key.
Supported by Silverlight for Windows Phone J The J key.
Supported by Silverlight for Windows Phone K The K key.
Supported by Silverlight for Windows Phone L The L key.
Supported by Silverlight for Windows Phone M The M key.
Supported by Silverlight for Windows Phone N The N key.
Supported by Silverlight for Windows Phone O The O key.
Supported by Silverlight for Windows Phone P The P key.
Supported by Silverlight for Windows Phone Q The Q key.
Supported by Silverlight for Windows Phone R The R key.
Supported by Silverlight for Windows Phone S The S key.
Supported by Silverlight for Windows Phone T The T key.
Supported by Silverlight for Windows Phone U The U key.
Supported by Silverlight for Windows Phone V The V key.
Supported by Silverlight for Windows Phone W The W key.
Supported by Silverlight for Windows Phone X The X key.
Supported by Silverlight for Windows Phone Y The Y key.
Supported by Silverlight for Windows Phone Z The Z key.
Supported by Silverlight for Windows Phone F1 The F1 key.
Supported by Silverlight for Windows Phone F2 The F2 key.
Supported by Silverlight for Windows Phone F3 The F3 key.
Supported by Silverlight for Windows Phone F4 The F4 key.
Supported by Silverlight for Windows Phone F5 The F5 key.
Supported by Silverlight for Windows Phone F6 The F6 key.
Supported by Silverlight for Windows Phone F7 The F7 key.
Supported by Silverlight for Windows Phone F8 The F8 key.
Supported by Silverlight for Windows Phone F9 The F9 key.
Supported by Silverlight for Windows Phone F10 The F10 key.
Supported by Silverlight for Windows Phone F11 The F11 key.
Supported by Silverlight for Windows Phone F12 The F12 key.
Supported by Silverlight for Windows Phone NumPad0 The 0 key on the number pad.
Supported by Silverlight for Windows Phone NumPad1 The 1 key on the number pad.
Supported by Silverlight for Windows Phone NumPad2 The 2 key on the number pad.
Supported by Silverlight for Windows Phone NumPad3 The 3 key on the number pad.
Supported by Silverlight for Windows Phone NumPad4 The 4 key on the number pad.
Supported by Silverlight for Windows Phone NumPad5 The 5 key on the number pad.
Supported by Silverlight for Windows Phone NumPad6 The 6 key on the number pad.
Supported by Silverlight for Windows Phone NumPad7 The 7 key on the number pad.
Supported by Silverlight for Windows Phone NumPad8 The 8 key on the number pad.
Supported by Silverlight for Windows Phone NumPad9 The 9 key on the number pad.
Supported by Silverlight for Windows Phone Multiply The * (MULTIPLY) key.
Supported by Silverlight for Windows Phone Add The + (ADD) key.
Supported by Silverlight for Windows Phone Subtract The - (SUBTRACT) key.
Supported by Silverlight for Windows Phone Decimal The . (DECIMAL) key.
Supported by Silverlight for Windows Phone Divide The / (DIVIDE) key.
Supported by Silverlight for Windows Phone Unknown A special value indicating the key is out of range of this enumeration.

Remarks

To detect key combinations or modifier keys, use techniques as documented in the topic Keyboard Support.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference

Other Resources