新手问题:资源词典中的颜色和画笔...... [英] Newbie question: Colours and brushes in resource dictionaries...

查看:79
本文介绍了新手问题:资源词典中的颜色和画笔......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以拥有颜色的资源字典...以及画笔的资源字典...然后创建一个使用颜色资源字典颜色的画笔?我无法弄清楚该怎么做。当我将rdBrushes链接到rdColours,然后调整画笔的颜色,我可以访问的唯一本地资源颜色是系统颜色......不是很有用!能够通过从rdColours中定义的配色方案中选择官方颜色来编辑元素的画笔是很好的。

感谢任何建议,


Purkiss

解决方案

是否可以拥有颜色的资源字典...和画笔的资源字典...然后创建一个使用颜色资源颜色的画笔字典?搜索结果>是的。

当我将rdBrushes链接到rdColours,然后调整画笔的颜色时,我可以访问的唯一本地资源颜色是系统颜色......不是很有用!能够通过从rdColours中定义的配色方案中选择官方颜色来编辑元素的画笔是很好的。

>您使用的是哪个版本的Blend?这适用于Blend 2 SP1

请在查看此简短演示。 http://cid-eeb5461a76579756.skydrive.live.com/self.aspx/Public/resources.wmv
使用的项目是 http://cid-eeb5461a76579756.skydrive.live.com/self.aspx/Public/WpfApplication65.zip 搜索结果谢谢!

Is it possible to have a resource dictionary for colours...and a resource dictionary for brushes...  and then create a brush that uses colours from the colour resource dictionary?  I cannot figure out how to do it.  When i link my rdBrushes to rdColours, then adjust a brush's colours, the only local resource colours i can access are system colours...not very useful!  it'd be nice to be able to edit a brush for an element by selecting official colours from the colour scheme, defined in the rdColours.

Any advice is appreciated, 


Purkiss

解决方案

Is it possible to have a resource dictionary for colours...and a resource dictionary for brushes...  and then create a brush that uses colours from the colour resource dictionary? 

> Yes it is. 

When i link my rdBrushes to rdColours, then adjust a brush's colours, the only local resource colours i can access are system colours...not very useful!  it'd be nice to be able to edit a brush for an element by selecting official colours from the colour scheme, defined in the rdColours.

> Which version of Blend are you using? This works for me in Blend 2 SP1

Check out this short demo at http://cid-eeb5461a76579756.skydrive.live.com/self.aspx/Public/resources.wmv
The project used is up at http://cid-eeb5461a76579756.skydrive.live.com/self.aspx/Public/WpfApplication65.zip

Thanks!


这篇关于新手问题:资源词典中的颜色和画笔......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆