RibbonControlsLibrary 中的样式功能区
丝带不错啊我想让它变得更好......(恕我直言)
使用功能区(来自.NET 3.5 sp1 上的 RibbonControlsLibrary),可以更改一些背景和前景。但我想要重新设计的是位于 RibbonTabGroup“背景”中的白色“蒙版”(带有 alpha 的线性渐变画笔)。我和史努比一起看过。我在风格中找到了它。
<LinearGradientBrush x:Key="[49] Í" StartPoint="0.5,0.0" EndPoint="0.5,1.0">
<GradientStop Color="#EEFFFFFF" Offset="0.0" />
<GradientStop Color="#BBFFFFFF" Offset="0.1" />
<GradientStop Color="#05FFFFFF" Offset="0.5" />
<GradientStop Color="#20FFFFFF" Offset="1.0" />
</LinearGradientBrush>
但我仍然不知道如何覆盖它。我也不知道它设置在哪里... 干杯,帕特里克
Ribbon is nice. I want to make it nicer... (IMHO)
With the Ribbon (from RibbonControlsLibrary on .NET 3.5 sp1), it is ok to change some backgrounds and foregrounds. But the thing I want to re-style is the white "mask" (linear gradient brush with alpha) that seats in the "background" of the RibbonTabGroup. I saw it with Snoop. I found it in the style.
<LinearGradientBrush x:Key="[49] Í" StartPoint="0.5,0.0" EndPoint="0.5,1.0">
<GradientStop Color="#EEFFFFFF" Offset="0.0" />
<GradientStop Color="#BBFFFFFF" Offset="0.1" />
<GradientStop Color="#05FFFFFF" Offset="0.5" />
<GradientStop Color="#20FFFFFF" Offset="1.0" />
</LinearGradientBrush>
But still I have no idea how to override it. I don't know either where it is set...
Cheers, Patrick
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我得到了它!
在以下帖子的帮助下 将 UserControl 序列化为 xaml,但不序列化它的孩子吗? [非常感谢你威尔]。我可以提取“默认”样式。这样我就得到了完整的风格。我之前所做的,使用 .NET Reflector 打开 RibbonControlsLibrary 并使用 BAML Viewer 读取 XAML。就我而言并不理想。
以防万一有人有同样的愿望,获取组件的默认样式(当它未发布@MSDN时):
干杯,帕特里克
I got it!
With help of the following post Serialize a UserControl to xaml, but not its children? [Many thanks to you Will]. I could extract the "default" style. So I obtain the complete style. What I did before, open RibbonControlsLibrary with .NET Reflector and read the XAML with BAML Viewer. Not ideal in my case.
Just in case someone has the same wish, obtaining the default style of component (when it isn't published @MSDN):
Cheers, Patrick