Quantcast
Channel: Silverlight Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 801

Created Issue: PhoneTextBox uses wrong brush with hint and empty text [9945]

$
0
0
Just created a PhoneTextBox with a Hint and you can see this when you start typing into the text box. The text is drawn with the hint brush, not the standard foreground brush. I've worked around this issue by implementing 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["PhoneForegroundBrush"];
if (textBox.Foreground != foregroundBrush)
textBox.Foreground = foregroundBrush;
}
}

This is definitely a bug

Viewing all articles
Browse latest Browse all 801

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>