مشاركة عبر


KeyEventArgs.VirtualKey Property

Definition

Gets the virtual key that maps to the key that was pressed.

public:
 property VirtualKey VirtualKey { VirtualKey get(); };
VirtualKey VirtualKey();
public VirtualKey VirtualKey { get; }
var virtualKey = keyEventArgs.virtualKey;
Public ReadOnly Property VirtualKey As VirtualKey

Property Value

The virtual key value.

Remarks

Windows 10 Apps do not receive this event when an Input Method Editor (IME) is enabled. The Input Method Editor (IME) handles all keyboard input and sets Handled to true.

Windows Phone This API is supported in native apps only.

Applies to

See also