CharacterReceivedEventArgs.KeyCode Property

Definition

Gets the key code of the character received by the input queue.

public:
 property unsigned int KeyCode { unsigned int get(); };
uint32_t KeyCode();
public uint KeyCode { get; }
var uInt32 = characterReceivedEventArgs.keyCode;
Public ReadOnly Property KeyCode As UInteger

Property Value

UInt32

uint32_t

The character in UTF-32 encoding.

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