WPF 用代码设置颜色
摘要:
纯色:SolidColorBrush brush = new SolidColorBrush(Colors.White);window1.Background = brush;渐变色:LinearGradientBrush buttonBrush = new LinearGradientBrush(); buttonBrush.StartPoint = new Point(0, 0.5); buttonBrush.EndPoint = new Point(1, 0.5); buttonBrush.GradientStops.Add(new GradientStop(Colors.Green, 阅读全文
posted @ 2013-02-28 19:04 CrazyKeung 阅读(1591) 评论(0) 推荐(0) 编辑