Xceed.Wpf.Toolkit.CalculatorUpDown.OnTextInput C# (CSharp) Method

OnTextInput() protected method

protected OnTextInput ( System.Windows.Input.TextCompositionEventArgs e ) : void
e System.Windows.Input.TextCompositionEventArgs
return void
    protected override void OnTextInput( TextCompositionEventArgs e )
    {
      if( IsOpen && EnterClosesCalculator )
      {
        var buttonType = CalculatorUtilities.GetCalculatorButtonTypeFromText( e.Text );
        if( buttonType == Calculator.CalculatorButtonType.Equal )
        {
          CloseCalculatorUpDown( true );
        }
      }
    }