Q:

WP7 text box background colour when selected

I am developing a very simple WP7 app just for fun.  I've got a textbox on my view and when I click it the background colour changes to white.  As the text foreground is also white, the text doesn't show.  Is there a way of overriding this default styling?

A:

If I understood question correctly, you can change background and foreground brush of the TextBox on GotFocus event, like this:
 private void textBox1_GotFocus(object sender, RoutedEventArgs e)
 {
      textBox1.Background = new SolidColorBrush(Colors.Blue);
      textBox1.Foreground = new SolidColorBrush(Colors.Yellow);
 }

