动态使用资源字典 [英] Dynamically use resource dictionary

查看:88
本文介绍了动态使用资源字典的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Silverlight的新手.在我的项目中,我设计了具有多种颜色组合的主页和控件,并作为资源字典保存在单独的xaml文件中.我有多个xaml文件的Resource Dictionary.我将所有颜色组合名称(资源字典")分配给一个组合框.我想根据组合框的选择更改主页的颜色组合.请在上述问题上为我提供指导.

谢谢
Anil

I am new to Silverlight. In my project, I designed main page and controls with several colour combination and kept in separate xaml file as Resource Dictionary. I have multiple xaml files of Resource Dictionary. I assigned all colour combinations names (Resource Dictionary) to one combo box. I want to change the colour combination of my main page, as per selection of combo box. Kindly guide me on the above issue.

Thanks
Anil

推荐答案

您需要使用主题-要了解它们,请观看
You need to use Themes - to learn about them watch this[^] video.


这篇关于动态使用资源字典的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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