WPF Calculator

First Adding Reference to WPF Toolkit Extended Assembly


Creating a Calculator

<Window x:Class="ExtendedWPF.Calculator"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         xmlns:wpfx="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended"
        Title="Calculator" Height="300" Width="300">
    <Grid>
        <wpfx:Calculator Name="MathCalculator" />
    </Grid>
</Window>

Output
wpf Calculator

Features

The Calculator control supports the following operations.

Basic mathematical operations such as addition, subtraction, and multiplication.
Memory operations such as clear, store, recall, M+ and M-.
Mouse and keyboard support


Properties

The DiaplayText property represents the current value as text.

The Memory property represents the current value stored in the calculator memory.

The Precision property represents number of precision points.

The Value property represents the current number value.
WPF Calculator WPF Calculator Reviewed by Bhaumik Patel on 10:55 PM Rating: 5