在 Silverlight 中检测 Ctrl+V 的最佳方法是什么?
我想检测 Ctrl+V,以访问剪贴板。
最佳答案
if (e.Key == Key.V)
{
if ((Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control)
{
//do what you want on paste
}
}
您必须在 keyUp 事件上使用它。更多细节可以在这里找到:http://msdn.microsoft.com/en-us/library/cc189015%28VS.95%29.aspx
关于silverlight-4.0 - 如何在 Silverlight 4 中检测 Ctrl+V?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2955466/