当我尝试加载本应与 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/