摘要: <Grid Name="grdRoot"> <Button Name="btnClick" Content="Click" Width="72" Height="24" /> <!--LinearGradientBrush只需要注意几个属性: 1.SpreadMethod:指用什么样的方式去处理不在线性渐变中的区域(即扩展方式,用个比喻吧, 把下面浅绿色的比作一张桌面背景图,把整个区域比作桌面,SpreadMethod 指定的就是【 平铺 / 拉伸】 2.Mappi 阅读全文
posted @ 2012-07-19 16:29 麦芽糖! 阅读(254) 评论(0) 推荐(1) 编辑
摘要: <Window.Resources> <Style TargetType="Button"> <Setter Property="Template"> <Setter.Value> <ControlTemplate> <Grid> <Border Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" BorderTh... 阅读全文
posted @ 2012-07-19 11:14 麦芽糖! 阅读(794) 评论(0) 推荐(1) 编辑