Skip to main content
A newer version of this page is available. .

Calculator

Overview

The Calculator control allows end-users to edit numeric values using the common calculator interface.

Calculator_DigitalDisplay

The Calculator control offers the following features.

  • Basic Math Operations

    The Calculator control supports the following operations.

    • Add
    • Substract
    • Multiply
    • Divide
    • Square root
  • Memory Operations

    The Calculator control supports the following memory operations.

    • Store
    • Recall
    • Add (M+)
    • Substract (M-)
  • Calculation History

    The Calculator.History property allows you to access the calculation history. The Calculator.ClearHistory method clears the calculation history.

    Calculator_History

  • Keyboard Support

    The Calculator control can process the keyboard input.

  • Configurable Precision

    Use the Calculator.Precision property to specify the maximum number of digits displayed to the right of the decimal point.

  • Optional Digital Display

    Use the Calculator.IsDigitalDisplay property to switch between digital and text display modes.

    Calculator_DigitalDisplay Calculator_NonDigital

  • Customizable Error Text

    Handle the Calculator.CustomErrorText event to provide a custom error description.

    Calculator_Error

  • Complementary popup control

    DevExpress WPF Editors library contains a popup variation of the Calculator control. To learn more, see PopupCalcEdit.

Declaration

To add a Calculator to a Window, drag it from the Toolbox.

The following sample demonstrates how to create a Calculator using XAML markup.

<dxe:Calculator Precision="3"/>
See Also