zoukankan
html css js c++ java
把ResourceDictionary保存为文件,从外部xaml文件加载ResourceDictionary
把ResourceDictionary保存为文件
Uri skinDictUri
=
new
Uri(
"
.\\Resources\\Skins\\skin.xaml
"
, UriKind.Relative);
ResourceDictionary skinDict
=
Application.LoadComponent(skinDictionaryUri)
as
ResourceDictionary;
XmlWriter xmlWriter
=
XmlWriter.Create(
"
c:\\a.xaml
"
);
XamlWriter.Save(Application.LoadComponent(skinDictionaryUri), xmlWriter);
xmlWriter.Close();
从外部xaml文件加载ResourceDictionary
ResourceDictionary skinDict
=
new
ResourceDictionary();
XmlTextReader txtReader
=
new
XmlTextReader(
"
c:\\a.xaml
"
);
XmlReaderSettings settings
=
new
XmlReaderSettings();
XmlReader xmlReader
=
XmlReader.Create(txtReader, settings);
skinDict
=
(ResourceDictionary)XamlReader.Load(xmlReader);
查看全文
相关阅读:
StarGAN v2
STGAN
Neo4j 图数据库查询
StarGAN
AttGAN
分布式事务解决方案--Seata源码解析
5分钟彻底了解Nginx的反向代理
SpringBoot启动流程源码解析
JAVA基础5--注解的实现原理
Redis进阶三之底层存储数据结构及内存优化
原文地址:https://www.cnblogs.com/pdfw/p/1403104.html
最新文章
VirtualBox安装配置CentOS7(含网络配置)
音视频开发-全网最全常用音视频编码和格式汇总
c++智能指针介绍_再补充
kernel开发——semaphore、atomic、wait_queue_t
原子操作耗时对比
andorid平台下omx解码组件一些思考
JPEG解码——(6)IDCT逆离散余弦变换
gstreamer应用开发(播放器)之旅
gstreamer常用命令
安卓Media相关类测试demo
热门文章
JPEG解码——(5)反量化和逆ZigZag变换
H264解码demo
vue上传文件
springboot整合mybatis+mysql+druid 多个数据源
springboot 错误日志与其它日志分开保存(每天)
docker-compose安装Minio
docker-compose使用redis
知识驱动的视频理解论文一览
小样本学习的定义
知识驱动的视觉理解论文一览
Copyright © 2011-2022 走看看