/// <summary>
/// When the Hint is changed, check if it needs to be hidden or shown.
/// </summary>
/// <param name="sender">Sending PhoneTextBox.</param>
/// <param name="args">DependencyPropertyChangedEvent Arguments.</param>
private static void OnHintPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
{
PhoneTextBox phoneTextBox = sender as PhoneTextBox;
if (phoneTextBox != null && phoneTextBox.HintContent != null)
{
phoneTextBox.UpdateHintVisibility();
}
}