c# WPF change foreground

  1. myobject.Foreground = Brushes.Black;  

OR

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


No comments:

Post a Comment

Note: only a member of this blog may post a comment.