Getting Started

This tutorial will walk your through the creation of a sample application that contains RadCalculator and will show you how to:

  • Use RadCalculator in your project

  • Perform basic calculations

  • Perform more complicated calculations

For the purpose of this example, you will need to create an empty WPF Application project and open it in Visual Studio.

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

Example 1: Defining RadCalculator

<UserControl x:Class="RadCalculator.MainPage"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"&#13;             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&#13;             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"&#13;             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"&#13;             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"&#13;             xmlns:my="clr-namespace:RadCalculator"
             mc:Ignorable="d" d:DesignHeight="700" d:DesignWidth="700">   

    <Grid x:Name="LayoutRoot" Background="White" >
        <telerik:RadCalculator />       
    </Grid>
</UserControl>

Now if you run the application, you will have a RadCalculator:

Figure 1: Defining RadCalculator

Rad Calculator-Basic

Performing Basic Calculations with RadCalculator

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:

Figure 2: Basic Calculations with RadCalculator

Rad Calculator-Basic Calculations

Performing Complex Calculations with RadCalculator

RadCalculator allows you to perform 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. Once a particular operation is executed, the history is updated accordingly:

Figure 3: Complex Calculations with RadCalculator

Rad Calculator-Complex Calculations

See Also

In this article
Not finding the help you need? Improve this article