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

OnGotFocus() protected method

Override the Focus event to hide the Hint.
protected OnGotFocus ( RoutedEventArgs e ) : void
e System.Windows.RoutedEventArgs Event arguments.
return void
        protected override void OnGotFocus(RoutedEventArgs e)
        {
            if (_ignoreFocus)
            {
                _ignoreFocus = false;

                var rootFrame = Application.Current.RootVisual as Frame;
                rootFrame.Focus();

                return;
            }

            Foreground = _foregroundBrushEdit;

            if (_hintContent != null)
            {
                ActualHintVisibility = Visibility.Collapsed;
            }

            base.OnGotFocus(e);
        }