Keung

导航

随笔分类 -  WPF

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 阅读(1624) 评论(0) 推荐(0)