在WPF一个dll引用主题
-
28-09-2019 - |
题
我使用WPF TreeListView控制一个开源。控制是一个库项目与主题包含一些XAML主题文件夹它。在我的WPF项目,我已经得到了控制DLL的引用,我想知道如何基准的DLL主题在App.xaml中。我试图做这样的事情,但它抛出异常,说不能装配找到treelistview
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/PresentationFramework.Aero;component/themes/Aero.NormalColor.xaml" />
<ResourceDictionary Source="/TreeListView;component/themes/Aero.NormalColor.xaml" />
</ResourceDictionary>
</Application.Resources>
目前,我有所有的主题文件拷贝在我的WPF项目在本地使它像这样的工作。
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/PresentationFramework.Aero;component/themes/Aero.NormalColor.xaml" />
<ResourceDictionary Source="themes/aero.normalcolor.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
有没有办法直接引用主题文件在TreeListView DLL喜欢引用默认的主题。
等待 纳比尔
解决方案
我找出自己,我使用了错误的组件的文件名。
不隶属于 StackOverflow