Key vs VirtualKey ...... [英] Key vs VirtualKey...

查看:128
本文介绍了Key vs VirtualKey ......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到WinRT中定义的 ModifierKeys ,但我也看到
VirtualKey VirtualKeyModifiers 。后一组似乎是使用的 - 例如KeyEventArgs的Key属性是VirtualKey,PointerEventArgs的e.KeyModifiers是VirtualKeyModifiers。为什么这两个?是否将使用
Key / ModifierKeys枚举?显然,如果类型与SL / WPF / WP7一致以促进代码共享将是最好的。

I see both Key and ModifierKeys defined in the WinRT but I also see VirtualKey and VirtualKeyModifiers. The latter set seems to be what is used - e.g. the Key property of KeyEventArgs is a VirtualKey and the e.KeyModifiers of PointerEventArgs is VirtualKeyModifiers. Why have the two? Are the Key/ModifierKeys enums going to be used? Obviously it would be best if the types were consistent with SL/WPF/WP7 to facilitate code sharing.

推荐答案

嗨Andrew,

Hi Andrew,

Alnur的回答
http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/900c18da-89a6-4e50-aab6-867e73b2aee4
 解决您的问题?

Does Alnur's answer at http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/900c18da-89a6-4e50-aab6-867e73b2aee4 address your concerns?

- Rob


这篇关于Key vs VirtualKey ......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆