简体   繁体   English

WPF功能区菜单选项卡永久可见

[英]WPF Ribbon Menu tab permanently visible

I'm programming an application in WPF using the Ribbon menu, part of the requirements for the application is that I need a commands tab, but this tab should be visible at all times and depending on the active document I would enable/disable the appropriate commands. 我正在使用功能区菜单在WPF中对应用程序进行编程,该应用程序的部分要求是我需要一个命令选项卡,但是该选项卡应始终可见,并且取决于我将启用/禁用适当功能的活动文档命令。

My question is, does anyone know a way to split the ribbon menu so that the commands tab is always visible on the right side of the menu? 我的问题是,是否有人知道拆分功能区菜单的方法,以便始终在菜单的右侧看到“命令”选项卡?

I'm sure there's an easy answer for this, I just haven't found it yet. 我敢肯定有一个简单的答案,我只是还没有找到。

Thanks & Regards! 感谢和问候!

It's not within the functionality of the ribbon. 它不在功能区的功能范围内。 Why not build a grid with 2 columns, and have the ribbon in the left pane and the custom control on the right? 为什么不建立一个2列的网格,并在左侧窗格中显示功能区,在右侧显示自定义控件? Then you can just style the custom control to match the ribbon. 然后,您就可以设置自定义控件的样式以匹配功能区。

You can get the source code for the ribbon from CodePlex so you would be able to get the exact style. 您可以从CodePlex获取功能区的源代码,以便能够获得准确的样式。

It might not be what you wanted to hear, but I think it would be ideal. 它可能不是您想听到的,但我认为这是理想的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM