惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Google DeepMind News
Google DeepMind News
aimingoo的专栏
aimingoo的专栏
Microsoft Security Blog
Microsoft Security Blog
T
Tenable Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
W
WeLiveSecurity
D
DataBreaches.Net
Attack and Defense Labs
Attack and Defense Labs
H
Heimdal Security Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
AI
AI
P
Proofpoint News Feed
PCI Perspectives
PCI Perspectives
Schneier on Security
Schneier on Security
T
Threatpost
GbyAI
GbyAI
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
H
Help Net Security
F
Full Disclosure
T
Threat Research - Cisco Blogs
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
M
MIT News - Artificial intelligence
L
Lohrmann on Cybersecurity
Martin Fowler
Martin Fowler
博客园 - 【当耐特】
Y
Y Combinator Blog
腾讯CDC
The Hacker News
The Hacker News
博客园 - Franky
Hacker News - Newest:
Hacker News - Newest: "LLM"
博客园_首页
Simon Willison's Weblog
Simon Willison's Weblog
L
LINUX DO - 最新话题
Security Latest
Security Latest
Know Your Adversary
Know Your Adversary
Forbes - Security
Forbes - Security
Application and Cybersecurity Blog
Application and Cybersecurity Blog
S
SegmentFault 最新的问题
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
L
LangChain Blog
Vercel News
Vercel News
Cisco Talos Blog
Cisco Talos Blog
量子位
P
Proofpoint News Feed
H
Hacker News: Front Page
Help Net Security
Help Net Security
L
LINUX DO - 热门话题
Project Zero
Project Zero
C
Cisco Blogs

博客园 - 源码工作室

什么是公司战略 开通了知识星球圈“程序猿团队管理之道” 我们的双12活动总结 做电商的切身经验分享 Android编译报Errors running builder 'Android Pre Compiler' on project 'XXX' java.lang.NullPointerException 技术不如你,但老板就是赏识他,为什么? 看我是如何快速学习android开发的(一) 屌丝创业,你能闯过这么多关吗? android不能显示log的问题 第一次和风投接触 你体会过创业的艰辛吗? Bambook大赛程序结果发布兼拉票 Bambook大赛程序终于发布了 C# 如何检查当前用户在Windows系统下的权限 删除USB转串口的所有驱动 《家庭财务总管》升级(1.0.0.3) MFC中Wizard中看不到类的解决办法 总结C++中的所有强制转换函数(const_cast,reinterpret_cast,static_cast,dynamic_cast)(转载) WPF中template的区别
多个WPF工程公用ResourceDictionary文件
源码工作室 · 2011-09-01 · via 博客园 - 源码工作室

WPF工程中,用Blend工具自定义了许多ResourceDictionary,在各个工程中公用的方法:

1. 创建一个新的工程,然后把ResourceDictionary文件加入到改工程中。

2. 使用改ResourceDictionary的工程添加共享工程的reference,并在使用的窗口中合并dictionary,合并代码如下:

<ResourceDictionary>

<ResourceDictionary.MergedDictionaries>

<ResourceDictionary Source="pack://application:,,,/YourAssembly;component/Subfolder/YourResourceFile.xaml"/> 

<ResourceDictionary.MergedDictionaries/>

<ResourceDictioAnary/> 

3. 然后就像使用本地工程样使用style,template等公用的资源。