摘要: 样式样式非常有用,它就像是html中的CSS.如果你要将某一样式应用到某一类型元素实例,那么你应该只设置Style的TargetType属性而不设置Key属性(同时设置将不产生作用).Code 1 <Window.Resources> 2 <Style TargetType="Rectangle"> 3 <Setter Property="Fill"> 4 <Setter.Value> 5 <SolidColorBrush Color="Yellow"></SolidC 阅读全文
posted @ 2011-05-04 16:50 Joe·Zhou 阅读(622) 评论(0) 推荐(1)