我有一个项目有几个解决方案。在我的核心解决方案中,我有一个包含我的主题的主题文件夹。在 shell 解决方案和App.xaml
文件中,我想解决我的主题。像这样:
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Hezareh.Core;component/Themes/CustomDocumentViewerTemplate.xaml" />
<ResourceDictionary Source="/Hezareh.Core;component/Themes/Darkness.xaml" />
<ResourceDictionary Source="/Hezareh.Core;component/Themes/Generic.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
但我收到此错误:
设置属性“System.Windows.ResourceDictionary.Source”引发异常。