Fdream's Blog
专注于WEB前端开发
Powered by Google

Path的Stroke和Fill属性不能指向同一个SolidColorBrush对象?

25 晴天 2007-10
Fdream 发表于 Silverlight, 已被阅读 17575 次, 评论 0 条
关键词:silverlight
[ 阅读字体大小: ]

今天碰到这个BT的问题,对于两个Path对象,像下面这样写的时候,第二行居然无效!

引用内容:

SolidColorBrush scb = new SolidColorBrush(CommonApp.Instance.PathColor);

pathA.Stroke = scb;

pathB.Stroke = scb; //此句居然没有任何作用……

同样,Path的Fill属性存在同样的问题。而对于Rectangle等对象这样写则没有什么问题,真是奇怪...

引用内容:

SolidColorBrush scb = new SolidColorBrush(CommonApp.Instance.RectangleColor);

rectangleA.Fill = scb;

rectangleB.Fill = scb;

这是为什么呢?

Related articles 您可能对这些文章也感兴趣:
Related comments 与该文相关的评论:(我也想说几句)
Add a comment 我来说两句: 
禁止表情
禁止UBB
禁止图片
识别链接
识别关键字
表  情
arrow
用户名:   密码:  (匿名可不写) 同时注册?
验证码:   看不清?换个图片  看不清楚?换个图片

 
Copyright © 2005-2008,Fdream All Rights Reserved
Processed in 0.1093764 second(s) , unknow queries
Powered by OWord V0.1, Even Not Alpha
(此博客程序为半成品,请勿索取,以免给您的心灵造成创伤^_^)
鄂ICP备05026031号