在一个相当大的控件库上工作,generic.xaml就会失控。我很想通过控件来拆分它(虽然一次用于一个名称空间,目前只包含一些简单的名称空间)。
为此,我增加了更多的资源字典。
然后,在generic.Xaml中添加:
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Themes/Generic.Core.xaml" />
</ResourceDictionary.MergedDictionaries>还有..。得到一个装载错误。
正确的URL是什么?
这是:
dll文件中的something).
我读过MSDN中关于pack URL的部分,但是对于一些看起来很容易的东西来说,这听起来真的很复杂。
)请帮忙。
发布于 2010-07-21 06:48:24
找到它:
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Tradex.Presentation;component/Themes/Generic.Core.xaml" />
</ResourceDictionary.MergedDictionaries>这是可行的。
需要在程序集前缀(将Tradex.Presentation替换为程序集名称)并以component项开始。
https://stackoverflow.com/questions/3296834
复制相似问题