原文: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

最新文章

  1. hdu---(1280)前m大的数(计数排序)
  2. centreon 降低rrd磁盘读写
  3. python+django+wusgi+nginx安装部署
  4. Guess
  5. Oracle sga、pga介绍改动
  6. [iOS]C语言技术视频-10-指针变量
  7. U-Boot启动过程
  8. Online Judge(OJ)搭建——5、配置
  9. ubuntu下 将证书导入java的cacerts证书库
  10. react-native中的navigator
  11. [转]python中的正则表达式(re模块)
  12. 一、python基本语法元素(温度转换)
  13. [No0000133]c# ERROR:“.”(十六进制值 0x00)是无效的字符
  14. 微信小程序制作家庭记账本之一
  15. Openwrt VLAN Configure(2)
  16. test20180829
  17. [Unit Testing for Zombie] 06. Using Factory
  18. BZOJ2730_矿场搭建_KEY
  19. 史上最全Vim快捷键键位图 -- 入门到进阶
  20. PIE SDK栅格拉伸渲染

热门文章

  1. 【日常记录】Unity3D 中的 Surface Shader 是不支持在 Pass中使用的,因为自动生成了 Pass
  2. zabbix系列之八——安装后配置三Triggers
  3. Paxos可容错的一致性协议
  4. Django的model中创建表
  5. .NET Reflector注册机激活方法
  6. November 27th 2016 Week 48th Sunday
  7. November 5th Week 45th Saturday 2016
  8. 通过 python-xmp-toolkit 读取图片xmlp信息
  9. 题解 P1868 【饥饿的奶牛】
  10. Ubuntu 14.04安装QQ2012