[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand].NET Core 3 Support
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Collapse]Data Editors
    Included Components
   [Expand]Implementation Details
   [Expand]Getting Started
   [Collapse]Editor Types
     AutoSuggestEdit
     BarCodeEdit
     BrushEdit
     ButtonEdit
     Calculator
     CheckEdit
     ColorEdit
     ComboBoxEdit
     DateNavigator
     DateEdit
     DropDownButton
     FlyoutControl
     FontEdit
     HyperlinkEdit
     ImageEdit
     ListBoxEdit
     LookUpEdit
     MemoEdit
     PasswordBoxEdit
     PopupBrushEdit
     PopupCalcEdit
     PopupColorEdit
     PopupImageEdit
     ProgressBarEdit
     RangeControl
     RatingEdit
     SparklineEdit
     SpinEdit
     SimpleButton
     SplitButton
     TextEdit
     TimePicker
     ToggleSwitch
     Token Editors
     TrackBarEdit
   [Expand]Common Features
   [Expand]Range Control
   [Expand]Visual Elements
   [Expand]End-User Capabilities
   [Expand]Examples
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Calculator

Expanded Overview

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

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.

  • 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.

  • Customizable Error Text

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

  • Complementary popup control

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

Expanded 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.

Expanded See Also

Is this topic helpful?​​​​​​​