New to Telerik UI for WinUI? Download free 30-day trial

Getting Started

This tutorial will walk your through the creation of a sample application that contains RadCalculator.

Assembly References

In order to use RadCalculator in your projects, you have to add reference to the following assemblies:

  • Telerik.Windows.Controls
  • Telerik.Windows.Controls.Input

Adding RadCalculator to the Project

Defining RadCalculator

<telerik:RadCalculator />        
The telerikControls namespace points to xmlns:telerikControls="using:Telerik.UI.Xaml.Controls".

RadCalculator example

A picture showing WinUI RadCalculator

The calculated value can be accessed via the Value property of RadCalculator.

The current history can be accessed via the History property of RadCalculator.

Performing Calculations

RadCalculator allows you to perform all the basic calculations - addition, subtraction, multiplication, division. All of them can be executed either by the corresponding buttons or through the keyboard. Once a particular operation is executed, the history is updated accordingly.

Basic Calculations with RadCalculator

A picture showing WinUI RadCalculator with basic calculations performed

RadCalculator allows you to perform also a couple of more complex calculations - square root, reciprocal, percent, negate. All of them can be executed either by the corresponding buttons or through the keyboard.

Complex Calculations with RadCalculator

A picture showing WinUI RadCalculator with complex calculations performed

See Also

In this article
Not finding the help you need?