On Windows Phone 7, the text field with the IsReadOnly attribute is true when it starts (at least in the beta emulator), even if the background color is set to black and the foreground set to white, the background remains gray and the front circles are lighter gray. I need to change this to be readable!
So is there a way to override this?
I tried setting it to something else in the textbox load event, but it did not work. Apparently setting ReadOnly to true sets the background / background colors in the stone.
There will be some code for changing colors if they can be changed:
SolidColorBrush ForeBrush = new SolidColorBrush();
SolidColorBrush BackBrush = new SolidColorBrush();
ForeBrush.Color = Colors.White;
BackBrush.Color = Colors.Black;
txtFrom.Foreground = ForeBrush;
txtFrom.Background = BackBrush;
source
share