Here is the code for changing color
private void button1_Click(object sender, RoutedEventArgs e) { label1.Background = new LinearGradientBrush(Colors.DarkSlateBlue, Colors.SkyBlue, 45); label1.Foreground = new SolidColorBrush(Colors.White); this.Background = new LinearGradientBrush(Colors.Gold, Colors.Silver, 30); }
No comments:
Post a Comment