如何摆脱功能区菜单按钮不可触摸的黄色边框?

发布于 2024-09-27 05:32:01 字数 779 浏览 1 评论 0原文

我是 WPF 控件模板的新手,需要您的帮助。 我在这里有一个 示例 Microsoft Ribbon 项目 。 我尝试更改功能区菜单按钮的颜色,但无法使黄色边框消失。请参阅下面的屏幕截图。

alt text

如果您有解决方法,请帮忙!

您可以从以下位置获取 MS 功能区:

  1. http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=2bfc3187-74aa-4154-a670-76ef8bc2a0b4
  2. http://msdn.microsoft.com/en-us/office/aa973809.aspx

I'm new to WPF control template and need your help on this.
I got a sample Microsoft Ribbon project here.
I tried to change the color of the ribbon menu button but I can not make the yellow border goes off. Please see screenshot below.

alt text

If you have a work-around, please help!

You can get MS Ribbon from:

  1. http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=2bfc3187-74aa-4154-a670-76ef8bc2a0b4
  2. http://msdn.microsoft.com/en-us/office/aa973809.aspx

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

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

发布评论

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

评论(1

不爱素颜 2024-10-04 05:32:01

这似乎是一个无聊的问题:(

幸运的是,我找到了(花了 2 天)使用 WPF 主题的解决方法(在此处下载 1 & 2 (转到 codeplex.com 上的 WPF 主题))并更改键为 x:Key="&# 254;" 的画笔。 %20border%20bug/WpfRibbonApplication1-%20SOLVED%20the%20yellow%20border%20bug.rar" rel="nofollow">这是我的解决方案:

  1. 将“黄色”更改为白色。
  2. 将突出显示的其他所有内容着色为蓝色 我
  3. 红色高亮颜色与初始演示解决方案保持相同,
  4. 通过“修复了“黄色边框错误”#1”和“修复了“黄色边框错误””标记了我的修复。 " #2

这一定是 Ribbon 库的一个错误,因为:

  1. 如果不使用 WPF 主题,就会出现该错误!?
  2. #254 画笔只有在使用 WPF 主题时才有效。

它花费了我很多时间,所以我在这里发布以拯救像我这样的追随者。

希望这会对您有所帮助!

This seems to be a desserted questions :(

Luckily after all, I found (cost 2 days) a work-around which uses the WPF Themes (download here 1 & 2 (go to WPF Themes on codeplex.com) ) and change the brush whose key is x:Key="&# 254;". Here is my solution which :

  1. Change the "yellow" to white.
  2. Coloring blue everything else that highlighted.
  3. The red high light color is kept the same as the initial demo solution.
  4. I marked my fix by Fixed the "yellow-border bug" #1 & Fixed the "yellow-border bug" #2

This must be a bug of the Ribbon library since:

  1. If don't use the WPF theme, the bug appears !?
  2. The brushes #254 only got effective only if the a WPF theme used

It costs me so much time so I posted here to save the followers like me.

Hope this will help you!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文