Microsoft.Phone.Controls.PhoneTextBox.OnHintPropertyChanged C# (CSharp) Method

OnHintPropertyChanged() private static method

When the Hint is changed, check if it needs to be hidden or shown.
private static OnHintPropertyChanged ( DependencyObject sender, System.Windows.DependencyPropertyChangedEventArgs args ) : void
sender System.Windows.DependencyObject Sending PhoneTextBox.
args System.Windows.DependencyPropertyChangedEventArgs DependencyPropertyChangedEvent Arguments.
return void
        private static void OnHintPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            PhoneTextBox phoneTextBox = sender as PhoneTextBox;

            if (phoneTextBox != null && phoneTextBox._hintContent != null)
            {
                phoneTextBox.UpdateHintVisibility();
            }
        }