This is my first time working with Microfoft Expression Blend. My project is Silverlight Prototype(sketchflow). I have a TextBox(TextBox = logUser) and I want to change it's Foreground color.
I tried logUser.Foreground = Brushes.Black which I read in a different post(How do you change the text colour of a label programmatically in Microsoft Expression Blend 4), but it doesn't work.
Silverlight does not have a Brushes class , hence it throws you an error .
I went through the defination of System.Windows.Media and got to know that it provides you a SolidColorBrush which is inherited from Brush
So to achieve what you are looking for , you will have to use SolidColorBrush like below :