WPF Ribbon - 我们可以隐藏 Ribbon ApplicationMenu 的 AuxiliaryPane 吗?

发布于 2024-10-30 14:26:58 字数 269 浏览 7 评论 0原文

我在我的应用程序中使用 MS Ribbon。 我想隐藏其 RibbonApplicationMenuAuxiliaryPane 吗?我只想显示普通的菜单项。

我读到它的 Pane 违反了 Microsoft Office UI 的 Ribbon Control 许可证。 但在 Microsoft CRM 中,AuxillaryPane 不存在。

那么有没有办法隐藏这个呢?

问候 全科医生

I am using MS Ribbon in my application.
I want to hide the AuxiliaryPane of its RibbonApplicationMenu ? I want to show only normal menu items.

I read that it Pane violates the Microsoft Office UI License of Ribbon Control.
But in Microsoft CRM, AuxillaryPane is not present.

So is there an option to hide this ?

Regards
GP

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

冷血 2024-11-06 14:26:58

试试这个,它在功能区栏的加载事件中对我有用

private void ribbonBar_Loaded(object sender, RoutedEventArgs e)
    {
         var grid = (ribbonApplicationMenu.Template.FindName("MainPaneBorder",ribbonApplicationMenu) as Border).Parent as Grid;
         grid.ColumnDefinitions[2].Width = new GridLength(0);
    }

Try this it worked for me in Ribbonbar's loaded event

private void ribbonBar_Loaded(object sender, RoutedEventArgs e)
    {
         var grid = (ribbonApplicationMenu.Template.FindName("MainPaneBorder",ribbonApplicationMenu) as Border).Parent as Grid;
         grid.ColumnDefinitions[2].Width = new GridLength(0);
    }
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文