When you want to set an initial value of the phonetextbox and there is an hinttext then the initial value isn't visible,
when it's set by an viewmodel or something. With an minor change in the HandleTextChanged method it can be resoloved
private void HandleTextChanged(object sender, RoutedEventArgs e)
{
UpdateLengthIndicatorVisibility();
OnGotFocus(e); // <-- ADDED!
ResizeTextBox();
}
Comments:
when it's set by an viewmodel or something. With an minor change in the HandleTextChanged method it can be resoloved
private void HandleTextChanged(object sender, RoutedEventArgs e)
{
UpdateLengthIndicatorVisibility();
OnGotFocus(e); // <-- ADDED!
ResizeTextBox();
}
Comments:
This no longer appears to repro using the latest toolkit release. When PhoneTextBox.Text is bound to an initial value you correctly see the initial value in the proper Foreground color.