WPF RibbonWindow Metro Style

时间:2014-02-06 13:33:57

标签: wpf .net-4.5 ribbon

如何在Windows7的Metro风格中使用Ribbon Window? 我已尝试过此解决方案https://github.com/D-Key/whosh,但它会破坏快速访问栏。

1 个答案:

答案 0 :(得分:1)

好的,您需要为项目设置一个明确的主题。

How to set an explicit theme?

  1. 将您的Style dll添加到应用程序的参考列表中作为需求
  2. 编辑您的App.xaml
  3. <Application.Resources>
      <ResourceDictionary>
        <!-- other stuff -->
        <ResourceDictionary.MergedDictionaries>
          <!--example style-->
          <ResourceDictionary Source="/PresentationFramework.Aero;component/themes/Aero.NormalColor.xaml"/>
        </ResourceDictionary.MergedDictionaries>
      </ResourceDictionary>
    </Application.Resources>
    

    What theme's are available in Win8?

    快速搜索,我发现 PresentationFramework.Aero2.dll ,但肯定还有其他一些风格