您如何在generic.xaml中引用系统主题ResourceDictionary资源? [英] How do you reference a system theme ResourceDictionary resource in generic.xaml?

查看:232
本文介绍了您如何在generic.xaml中引用系统主题ResourceDictionary资源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想"我已经正确合并了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?

推荐答案

您好Countalpha,

Hi Countalpha,

您只需提供资源密钥即可引用画笔,这将搜索所有合并到该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资源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆