WPF 主题
2024-09-24 15:18:05
原文:WPF 主题
WPF 切换主题
string packUri = String.Format(@"/WpfControlLibrary1;component/Dictionary1.xaml");
ResourceDictionary rd = Application.LoadComponent(new Uri(packUri, UriKind.Relative)) as ResourceDictionary;
this.Resources.MergedDictionaries.Clear();
this.Resources.MergedDictionaries.Add(rd);
//Application.Current.Resources.MergedDictionaries.Clear();
//Application.Current.Resources.MergedDictionaries.Add(rd);
1、一个主题
<ResourceDictionary Source="/PresentationFramework.Royale;V3.0.0.0;31bf3856ad364e35;component\themes\royale.normalcolor.xaml" />
参考:
http://download.csdn.net/detail/leogle_reloaded/3683771
最新文章
- hdu---(1280)前m大的数(计数排序)
- centreon 降低rrd磁盘读写
- python+django+wusgi+nginx安装部署
- Guess
- Oracle sga、pga介绍改动
- [iOS]C语言技术视频-10-指针变量
- U-Boot启动过程
- Online Judge(OJ)搭建——5、配置
- ubuntu下 将证书导入java的cacerts证书库
- react-native中的navigator
- [转]python中的正则表达式(re模块)
- 一、python基本语法元素(温度转换)
- [No0000133]c# ERROR:“.”(十六进制值 0x00)是无效的字符
- 微信小程序制作家庭记账本之一
- Openwrt VLAN Configure(2)
- test20180829
- [Unit Testing for Zombie] 06. Using Factory
- BZOJ2730_矿场搭建_KEY
- 史上最全Vim快捷键键位图 -- 入门到进阶
- PIE SDK栅格拉伸渲染