Login/Register

WPF Calculator

Currently Compatible With Windows Vista RC2

Basic Calculator
Actual Default Size Calculator View
A simple calculator for WPF

Here is a calculator application for Windows Presentation Foundation created with Expression Interactive Designer and Visual C# Express Edition. To use this on WindowsXP you need some stuff from this Get The Beta page.

The calculator has only the most standard functions. But I tried to make it easily extensible; I hope to make more useful calculators also.

Larger View
The calculator window stretched large
Nested grids allow different areas to stretch in different ways.

I had a lot of fun making this, even though it took longer than I expected and the migration from January to February CTPs stalled me a bit. Much of the logic is based on the AvalonCalculator2 sample from the Windows SDK. There are also many C# calculator samples online, but this Resizable Calculator using C# was particularly inspiring and I feel offers a neat comparasin in what "resizable" means in WPF versus non-WPF.

 

»add new comment

Hello Alexander,

Just to let you know that this post has been linked from the Expression Section of NetFXGuide.com.

Best,

Francesco
NetFXGuide.com

 

« Check XHTML » § « © Alexander Lih 2005-2008 » § « Check CSS »