简体   繁体   English

如何在c#win8 Metro中检测BasicPage上的按键

[英]How to detect keypresses on a BasicPage in c# win8 Metro

I want to catch the keypresses regardless of the focus on any control. 无论对任何控件的关注如何,我都想抓住按键。 what event to fire and where. 什么事情要发射,在哪里。 I've tried to override OnKeyDown and OnKeyUp but that doesnt seem to work 我试图覆盖OnKeyDown和OnKeyUp,但似乎没有用

There is a tapped event for the UIElements UIElements有一个轻拍活动

You can read more here about events http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh465387.aspx 你可以在这里阅读更多有关活动的信息http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh465387.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM