开发者

How to know when the question mark key is pressed in silverlight?

I have a key down event, how can开发者_高级运维 I know when the ? key is pressed (on all platforms)?


You are going to need compare the PlatformKeyCode property from the KeyEventArgs. Just know that this codes are OS specific, so you need to use the BrowserInformation class from System.Windows.Browser to detect the client OS.

Here you can get Windows Virtual-Key Codes MSDN

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜