【问题标题】:How to change the Fluent Ribbon UI backstage color如何更改 Fluent Ribbon UI 后台颜色
【发布时间】:2011-03-18 09:25:12
【问题描述】:

如何更改 Fluent Ribbon UI 后台菜单的颜色(默认为蓝色)?

【问题讨论】:

    标签: wpf ribbon fluent fluent-ribbon


    【解决方案1】:

    版本 3.4.0:您可以使用 MetroColors.ThemeColorKey 属性更改功能区主题颜色。 将以下代码放入 App.xaml 文件中:

    <Application.Resources>
        <ResourceDictionary>
    
            <!--  This "override" is needed to change the ribbon theme color, do not remove!  -->
            <Color x:Key="{x:Static fluent:MetroColors.ThemeColorKey}">#FFF66AC1</Color>
    ...
    

    【讨论】:

      【解决方案2】:

      您需要设置后台背景颜色。这将更新 MenuButton、BackstageTabItems 和后台面板角落的 swish。下面的示例将颜色设置为红色。

      <Fluent:Backstage Background="Red">
          <Fluent:BackstageTabControl>
              <Fluent:BackstageTabItem Header="New"/>
              <Fluent:BackstageTabItem Header="Print"/>
          </Fluent:BackstageTabControl>
      </Fluent:Backstage>
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-10-12
        • 2010-12-01
        • 2020-12-26
        • 1970-01-01
        相关资源
        最近更新 更多