使用(Shift-右键单击)的 WPF 上下文菜单
我对 WPF 中的“ContextMenu”有疑问。有没有办法仅在执行“Shift-右键单击”时弹出上下文菜单? 我一直在到处寻找这个。上下文菜单似乎只能在“右键单击”时弹出。
有人有什么想法吗?
I have a question with the "ContextMenu" in WPF. Is there a way to have the context menu pop up only if a "Shift-Right-Click" was performed??
I have been looking all over the place for this. The ContextMenu seems to only be able to pop up when a "right-click" is made.
Anyone have any idea's ??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
试试这个...您的 XAML 上下文菜单属性应该如下所示...
并且您的后面的代码将如下所示。
Try this.... your XAML context menu properties should look like this...
And your code behind will look like this.