Welcome Guest [Log In] [Register]

News & Discussion

Regular Forum (No New Posts) Thế Giới Âm Nhạc.
Một kho âm nhạc, giúp các bạn giải trí.
No Posts in Forum
Topics: 0 Replies: 0
Regular Forum (No New Posts) Thế Giới Video
Talk about whatever you like!
No Posts in Forum
Topics: 0 Replies: 0
Redirect Forum Dong Bang Shin Ki
Always keep the faith
Hits: 1

Album_Cua113.Com.php public class NaiveGradientButton : Button{ GradientStop gradientStop1, gradientStop2; public NaiveGradientButton() { LinearGradientBrush brush = new LinearGradientBrush(); brush.StartPoint = new Point(0, 0); brush.EndPoint = new Point(1, 0); gradientStop1 = new GradientStop(); gradientStop1.Offset = 0; brush.GradientStops.Add(gradientStop1); gradientStop2 = new GradientStop(); gradientStop2.Offset = 1; brush.GradientStops.Add(gradientStop2); Foreground = brush; } public Color Color1 { set { gradientStop1.Color = value; } get { return (Color)gradientStop1.Color; } } public Color Color2 { set { gradientStop2.Color = value; } get { return (Color)gradientStop2.Color; } }}