How to get the Key Pressed in WinRT

后端 未结 1 1045
清歌不尽
清歌不尽 2020-12-12 02:43

I had used OnTextInput Event to get the Key Pressed by the end user in WPF/Silverlight, but in case of WinRT I dont have such events and I am struck with KeyDown Event. Tho

相关标签:
1条回答
  • 2020-12-12 03:17

    Lots of WinRT programmers have this problem, the event just isn't very discoverable. Microsoft hasn't been consistent enough about naming this event. It is KeyPress in Winforms, TextInput in WPF. Yet another choice for WinRT, it is the CharacterReceived event.

    0 讨论(0)
提交回复
热议问题