WPF 主题
原文:
WPF 主题
扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄
WPF 切换主题
SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。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

更多精彩