是否可以禁用功能区控件上的应用程序菜单? (WPF)
有没有办法禁用应用程序菜单(左上角的圆圈),以便用户无法单击它?
我对此完全没有用处,并且想不出任何可以使用它的东西,我找不到任何选项来禁用它。
请帮忙
非常感谢
Is there a way to disable to Application Menu, the circle thing on the left hand corner, so the user can't click on it?
I have absolutely no use on that, and cannot think of anything I can use that, I can't find any options to disable it.
Please help
Many thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我做了类似的事情,并设法删除了应用程序菜单。请检查这是否是您想要的方式。
I did something like this, and managed to remove the Application Menu. Do check if this is the way you wanted it to be.
在 xaml 文件中发布代码:
In to xaml file post the code:
我认为这将违反 Microsoft 使用功能区界面的许可。
在这里查看:http://msdn.microsoft.com/en-us /office/aa973809.aspx(已死)
(2012-09-11 存档)
但我也没有任何用处,所以我只是将“退出”选项放在那里。
编辑:
如果仅在控件的实现中需要应用程序菜单,或者您是否必须在所有使用功能区的应用程序中使用它,这会令人困惑?
有些事情很清楚,例如:您必须有一个“主页”选项卡,并且当应用程序启动时,它必须是选定的选项卡(就像在 Office 2007 中一样)。但其他一些事情......有点猜谜游戏。
我刚刚向 Microsoft 的 Office UI 小组发送了一封电子邮件,要求对此进行一些澄清。答案如下:看起来应用程序菜单不是可选的:
编辑:许可证已停用:
https://law.stackexchange.com/questions/18329/what-is-the-status-of-microsoft-ribbon-licensing-as-of-2017
I believe that would go against the Microsoft license for using the ribbon interface.
Check it out here: http://msdn.microsoft.com/en-us/office/aa973809.aspx (dead)
(Archive from 2012-09-11)
But I don't have any use for it either, so I just put the "Exit" option in there.
EDIT:
It was confusing if the Application Menu required only in the IMPLEMENTATION of the control, or do you have to USE IT in all applications that use a ribbon?
Some things are clear like: You HAVE to have a "Home" tab, and when the application starts, it HAS to be the selected tab (just like in Office 2007.) But some other things... Kind of a guessing game.
I just sent the Office UI group at Microsoft an e-mail asking for some clarification on this. Here's the answer: looks like the Application Menu is NOT optional:
EDIT: The license has been retired:
https://law.stackexchange.com/questions/18329/what-is-the-status-of-microsoft-ribbon-licensing-as-of-2017
试试这个。它唯一使用的 Windows 申请表
Try this one. its Only used windows application form