c# WPF change foreground

  1. myobject.Foreground = Brushes.Black;  

OR

  1. myobject.Foreground = new SolidColorBrush(Colors.Green);  


No comments:

Post a Comment