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
精彩评论