在我的按钮中打开“系统"菜单,右键单击 [英] open System menu in my button right click
问题描述
我要右键单击以打开系统菜单.
i want to open system menu in my button right click.
这是可能的.
joby詹姆斯
推荐答案
Hi Joby,
我认为WPF中没有内置方法可以执行您想要的操作.我们通常使用以下命令建立自己的客户菜单 ContextMenu 在尝试通过某些操作显示菜单时进行控制.
I think there is no a build-in method in WPF to do what you want. We usually build our own customer menu with ContextMenu Control when trying to show a menu by some actions.
但是,如果您在右键单击按钮时坚持要打开系统菜单,建议您搜索一些win32 API来发送该系统菜单的消息.
However, if you insist on opening system menu when right-clicking a button, I would suggest you to search for some win32 API to send message of this system menu.
对于非WPF特定问题, 一般Windows桌面开发问题 论坛是解决此类问题的好地方.
As it becomes to a not WPF specific questions, General Windows Desktop Development Issues forum is a better place for this kind of problem.
问候
这篇关于在我的按钮中打开“系统"菜单,右键单击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!