How to detect keystrokes on BasicPage in C # win8 Metro

I want to catch keystrokes, regardless of the focus on any control. what event to shoot and where. I tried to override OnKeyDown and OnKeyUp but it doesn't seem to work

+4
source share
1 answer

For UIElements

there is a tapped event,

You can learn more about the events http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh465387.aspx

0
source

Source: https://habr.com/ru/post/1440925/


All Articles