wpf - 尝试查找功能区控件资源字典时出错 - Office2007Blue

标签 wpf .net-4.0 ribbon ribboncontrolslibrary

当我尝试加载本应与 WPF RibbonControlLibrary 一起提供的 Office2007Blue 资源字典时,我不断收到错误 #6(查找资源字典“/RibbonControlsLibrary;component/Themes/Office2007Blue.xaml 时发生错误”) .有没有人看到这个问题并找到了解决办法?我使用的是此控件的 3.5.40729.1 版。

我的 XAML 如下,我已将它放在 Application.xaml 中;

<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="/PresentationFramework.Luna,
                                         Version=3.0.0.0,
                                         PublicKeyToken=31bf3856ad364e35,
                                         ProcessorArchitecture=MSIL;component/themes/luna.metallic.xaml" />
            <ResourceDictionary  Source="/RibbonControlsLibrary;component/Themes/Office2007Blue.xaml"  />                
        </ResourceDictionary.MergedDictionaries>

        <!-- other resources go here -->

    </ResourceDictionary>
</Application.Resources>

谢谢大家。

最佳答案

显然,WPF 团队发布的版本中不包含这些内容。 :(

关于wpf - 尝试查找功能区控件资源字典时出错 - Office2007Blue,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3719187/

相关文章:

c# - 统计每个词出现的频率

ms-office - 显示或隐藏 VSTO 加载项功能区

crash - 运行Windows XP MFC Ribbon应用程序的“遇到不正确的参数”

c# - 如何在 C# 中使用 XAML 和 WPF 在 MVVM 环境中将 View 绑定(bind)到 Viewmodel

c# - 第一次调用 .net web 服务很慢

c# - WPF MVVM Bind DataTable to DataGrid 不显示数据

c# - 检查安装需要重启

c# - 如何动态隐藏/禁用 WPF 功能区选项卡?

c# - 当 SelectedIndex 属性更改时,ListBox 的 SelectedItem 属性会更改吗?

wpf - 如何在 ListView 项中列出 UIElement?