PhoneTextBox uses wrong brush with hint and empty text
description
Just create a PhoneTextBox with a Hint and you can see this when you start typing into an empty text box. The text is drawn with the hint brush, not the standard foreground brush. I've worked around this issue by adding a TextChanged listener and calling this code:
public static void OnPhoneTextBoxTextChanged(PhoneTextBox textBox)
{
if (!string.IsNullOrEmpty(textBox.Text))
{
Brush foregroundBrush = (Brush)Application.Current.Resources["PhoneTextBoxForegroundBrush"];
if (textBox.Foreground != foregroundBrush)
textBox.Foreground = foregroundBrush;
}
}
This is definitely a bug