问题描述
我想"我已经正确合并了ResourceDictionary:
I "think" I've merged the ResourceDictionary properly:
<ResourceDictionary.MergedDictionaries>
< ResourceDictionary Source ="/PresentationFramework.Aero2; component/themes/aero2.normalcolor.xaml" />
<ResourceDictionary Source="/PresentationFramework.Aero2;component/themes/aero2.normalcolor.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary.MergedDictionaries>
现在如何引用其中定义的画笔之一?
Now how do I reference one of the brushes defined in it?
推荐答案
您只需提供资源密钥即可引用画笔,这将搜索所有合并到该ResourceDictionary的密钥.
You can refer the brushes by just giving the resource key and this will search for all the keys which are merged to that ResourceDictionary.
这篇关于您如何在generic.xaml中引用系统主题ResourceDictionary资源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!