C# Corner

Resources  
  • A Simple Calculator ClassNov 28, 2000. Code sample shows how to create a simple calculator class and call it from Main C# program.
  • Windows Calculator in C#Mar 27, 2001. This is a simple Calculator application as you will find in a Windows accessories.
  • Love CalculatorApr 11, 2001. This is an application can be used to calculate degree of love.
  • Assemblies : The Ins and Out : Part IApr 13, 2001. In Part 1, I will cover what exactly an assembly is, and what an assembly contains.
  • Assemblies : The Ins and Out : Part IIApr 16, 2001. In this part, I will discuss both Private and Shared assemblies and how to create a "Shared Assembly".
  • Assemblies : The Ins and Out : Part IIIApr 20, 2001. In this part I will discuss in more detail than Part 2, the available utilities for manipulating assemblies.
  • Calculator ExampleAug 14, 2001. Sample program shows you how to create a calculator.
  • Easter CalculatorAug 22, 2001. This program calculates the dates for Easter for any given year and for an hundred years.
  • Calculator in C#Sep 19, 2001. Attached program performs basic calculator operations.
  • Calculator in C# (Windows Application)Oct 19, 2001. This is a simple calculator program that was written using Visual Studio.NET and C#.
  • Mortgage Calculator in C#Mar 22, 2002. Mortgage Calculator is a C# Application developed for calculating the detailed monthly mortgage payments based on the loan amount, down payment, interest rate, mortgage duration.
  • The "ins" and "outs" of Using Stored Procedures in C#Jan 27, 2003. This article reviews the creation of stored procedures with parameters using the Visual Studio IDE.
  • Basics of Extending Your Working Environment in Visual StudioApr 10, 2003. All of us have used Macros in Microsoft Office and Add-ins in Visual Studio 6 and I am very sure all of us have been impressed as well by their power to control their own working environment.
  • Integrating Web Services with SDE Oct 01, 2003. In this article, we will see how to integrate Web services with a smart device application.
  • Resizable Calculator using C#Apr 22, 2004. This application is a scientific calculator, which is resizable and performs some basic operations like addition, subtraction, multiplication, division and some trigonometric functions.
  • CodeDom Calculator - Evaluating C# Math Expressions DynamicallyAug 08, 2005. This article describes how to use CodeDom and Reflection to Create a Calculator that can evaluate simple and complex math expressions on the fly.
  • Mortgage Calculator in C# and .NETSep 05, 2006. This article shows you how to create a mortgage calculator in .NET for computing a home loan. It also illustrates how to override a TextBox in order to create your own masked text box that includes thousand separators.
  • Animating your XAML AppsApr 05, 2007. This article will describe how to do 2D Animation using XAML Scripts. In the article we will describe how to implement transforms on XAML shapes and then how to move them around in your form.
  • Play Video in WPFApr 09, 2007. If you have built any video enabled application prior to WPF, you must be familiar with the Windows Media Player ActiveX control. The WPF library provides the MediaElement control that encapsulates Windows Media Player functionality.
  • Programming XAML - A Quick StartApr 10, 2007. XAML is a new descriptive programming language that is used to define user interfaces in WPF, Silverlight and Windows 8 Metro Style Apps. This article is an introduction to XAML.
  • XAML TextBoxApr 10, 2007. XAML <TextBox /> element represents the XAML TextBox control. This article discusses how to create a TextBox and set its various properties such as background and foreground colors, setting size and positions, fonts, wrapping, scrolling, and input validations.
  • XML Data Binding in WPFApr 11, 2007. This article describes how to bind XML data using a data template in WPF and XAML. For ease of demonstration, the XML is defined as a resource within the XAML document.
  • Digital Ink in WPFApr 11, 2007. Digital ink used to only be available as part of the Tablet PC SDK. Now it is bundled with Windows Presentation Foundation. This tutorial demonstrates how easy it is to integrate digital ink into your Avalon applications using XAML and C#.
  • Drawing Graphics Shapes in XAML Apr 12, 2007. This article describes the drawing model in XAML and how to draw various objects such as line, rectangle, ellipse, and paths using XAML.
  • XAML Layout using the Panel ClassApr 12, 2007. This article describes how to use the DockPanel element to achieve standard layouts in XAML. While there are a number of interface elements that can be used to position controls in your application, DockPanel provides one of the easiest mechanisms for defining scalable layouts.
  • Think in LINQ: Yahtzee Score Calculator Using LINQ TechnologyJul 23, 2007. This article revisits the yahtzee program I wrote in 2002 and reimplements scoring using LINQ technology. It compares the old way of scoring with LINQ and shows you the advantages of using LINQ.
  • WPF ListBoxAug 31, 2007. This tutorial shows you how to work with the ListBox control available in WPF.
  • Creating MenuItem With WPFSep 03, 2007. In any desktop application it is very important to have menu bar to the application/system, so that user will find easy to access it. In this tutorial I will be talking about how we can create Menu bar in WPF application using XAML.
  • WPF Database Communication Adding new Record to the DatabaseSep 06, 2007. WPF Database communication Adding new record to the database (XAML-MS-Access), I have a XAML form with FirstName, LastName, Email & Contact fields in it on click of submit button it will first check if the same email address is exists in the table else it will add new record I have made use of OleDbTransaction to perform add functionality.
  • Introduction to Building a Plug-In Architecture Using C#Sep 10, 2007. In this article we'll take another look at how we can use the state pattern to build a plug-in architecture that will allow us to change the behavior of our application by placing differnt plug-ins into a folder.
  • Implementing a Simple Silverlight ControlOct 30, 2007. This article shows how to implement a simple button control using Silverlight 1.1 and C#.
  • Just like windows calculatorNov 16, 2007. A windows application to simulate windows standard calculator.
  • Using Windows Forms Controls in WPFJun 20, 2008. In this tutorial, you will learn how to use existing Windows Forms controls in a WPF application. I have used Visual Studio 2008 to create this tutorial.
  • User Control in WPFJun 30, 2008. This article discusses how to create a User Control in XAML and WPF using Visual Studio 2008 and how to use it in a WPF application.
  • Animated Banners in XAMLJul 02, 2008. This article shows how to use animation related controls in XAML to create an animated banner with animations such as gradient colors, text rotation, and resize the banner text.
  • Navigating and passing values between XAML Pages in Silverlight 2Jul 08, 2008. In this article, I discuss how to navigate and pass values between XAML pages in Silverlight.
  • Creating Fancy Tooltips in WPFJul 14, 2008. Each control in WPF has a Tooltip property that can be accessed through XAML or code behind. This article shows how to create a fancy tooltip in XAML and WPF.
  • Menus in WPFJul 29, 2008. This tutorial shows you how to create and use a Menu control available in Windows Presentation Foundation (WPF).
  • Your first Animations Using XAML and Silverlight - Color Animation: Part IJul 29, 2008. In this article, I will give a trick of how to deal with ColorAnimation class within VS2008 and Silverlight context using both xaml and C# 4.0, afterward, and in the two subsequent articles, we’ll focus on the DoubleAnimation and PointAnimation.
  • Your first animations using XAML and Silverlight- Double animation: Part IIJul 30, 2008. In the previous article "Your first animations using xaml and silverlight - Color animation: Part I", we've exposed a technique of how to deal with color animation. In this article, I will do same thing but with a different animation. I mean the DoubleAnimation class this time.
  • Drawing Shapes in WPF Jul 31, 2008. This article is an introduction to graphics programming in XAML and WPF. In this article, I discuss various graphics objects including lines, rectangles, ellipses, and paths and how to draw them using XAML and WPF.
  • Your first Animation using XAML and Silverlight - Point Animation class: Part IIIAug 04, 2008. This article is third part of the series of articles about animation using XAML and Silverlight.
  • Media Player in WPFAug 04, 2008. This tutorial shows you how to play and control media files in WPF and XAML using WPF Media controls.
  • Data Binding in WPFAug 05, 2008. In this article, I discuss how we can use ADO.NET DataSet to get data from a database and bind to a WPF ListBox control using data binding process in WPF.
  • Silverlight Tutorial: How to Create an Animation of a Ball Being ThrownAug 06, 2008. This tutorial explores the XAML involved in Silverlight animations and provides step by step instructions on how to create an animation of a ball being thrown and bouncing across the floor.
  • Data Binding in WPF ControlsAug 11, 2008. This article shows how to add data binding support among controls in WPF.
  • Integrate WPF Control in your Excel SolutionsAug 11, 2008. In this article, I will show that it is possible to host a WPF control in a excel solution even that Visual studio and the .Net framework doesn’t provide us a way to host directly a given WPF control in an Excel application. To know how to realize such task, then follow this walkthrough.
  • Hosting a Windows Control in WPF ApplicationAug 12, 2008. In my previous article, I demonstrated how to host a WPF control within a windows application and in this tutorial, I will show how to host a windows form control within a WPF application.
  • Image Viewer in WPFAug 12, 2008. ImageViewer is an open source project written in WPF and C# that allows users to view images and manipulate them.
  • Host a WPF control in a windows applicationAug 12, 2008. In this walkthrough, I will demonstrate how to host a WPF control in a windows application.
  • Working with WPF Table using XAML - Part IAug 12, 2008. In this article, I will use WPF table in XAML format. This one defines a flexible grid area that contains rows and columns. At the contrast of the Grid object witch is defined in the System.Windows.Controls, the table object is defined in the System.Windows.Documents namespace.
  • How to Define and Configure a Grid Control Within a WPF Aplication Using XAML: Part IAug 13, 2008. In this article, I will try to make a representation of the Grid object witch is directly derived from the Panel abstract class and we can say that is a flexible area that contains rows and columns, it plays a role of container in a given WPF window.
  • WPF ProgressBar Aug 15, 2008. This tutorial shows you how to create and use a ProgressBar control available in Windows Presentation Foundation (WPF) and XAML.
  • WPF SliderAug 18, 2008. This article shows how create and use a slider control using WPF and XAML.
  • How to Define and Configure a Grid Control Within a WPF Application Using C#: Part IIAug 18, 2008. In a previous article, we discovered how to define and configure a Grid control using XAML. In this second article I’ll demonstrate how to do the same task using the code behind, I mean using C#.
  • WPF PopupAug 18, 2008. This tutorial shows you how to create and use a Popup control available in Windows Presentation Foundation (WPF) and XAML.
  • Bitmap Effects using WPFAug 19, 2008. This article shows how to give Bitmap Effect in WPF.
  • WPF TextBoxAug 21, 2008. This article shows how to use and work with the TextBox control available in WPF and XAML.
  • Working With a ScrollViewer Control in a WPF ApplicationAug 21, 2008. The ScrollViewer is an object that represents a scrollable area that contains other visible controls, it could be found within the System.Windows.Controls. At the contrast of a ScrollBar object, the ScrollViewer is a WPF new feature. So let’s discover its principal characteristics through this article.
  • Working with the Uniform Grid in WPFAug 22, 2008. In this article I will introduce the Uniform Grid object. The uniform grid object arranges content in its area so that all the cells in the grid have the same dimension. It represents a perfect solution if someone prefers to prevent the headache of ordering controls within an ordinary Grid object.
  • Working with WPF ViewBox ControlAug 22, 2008. In this article, we will show how to use a ViewBox control available in WPF and XAML.
  • ListBox in WPFAug 26, 2008. This tutorial shows you how to create and use a ListBox control in WPF and XAML. The tutorial also covers styling and formatting, add images, checkboxes, and data binding in a ListBox contrtol.
  • Working with WPF Table using C# - Part IIAug 26, 2008. In the previous article, Working with WPF Table using XAML - Part I, we discovered how to perform this task using XAML. Now, we will see how to do the same using C#.
  • WPF CalculatorAug 26, 2008. The attached source code with this article is a calculator application developed using XAML and WPF.
  • RadioButton in WPFAug 27, 2008. This tutorial shows you how to create and use a RadioButton control available in Windows Presentation Foundation (WPF) and XAML.
  • Dynamic and static Rectangle in WPFAug 29, 2008. This article shows how to create dynamic and static rectangle in WPF and XAML with various drawing effects.
  • Invalid FORMATETC structure ErrorSep 12, 2008. This tip shows how to fix Invalid FORMATETC structure error when you drag and drop a control from Toolbox to a XAML file.
  • Visual Brush in WPFSep 23, 2008. This article shows how to use a VisualBrush in WPF and XAML.
  • Drawing Bezier Curves in SilverlightNov 06, 2008. This article shows how to implement Bezier curves in Silverlight.
  • Implementing a Progress Bar in Silverlight 2Nov 17, 2008. In this article, I will show how to implement a simple and classic progress bar in Silverlight 2.0 and Visual Studio 2008.
  • CheckBox in SilverlightNov 29, 2008. This article demonstrates how to create and use a CheckBox control in Silverlight with the help of XAML and C#.
  • OpenFileDialog in SilverlightNov 30, 2008. The OpenFileDialog allows users to select one or more files on the local computer or on a networked computer. This article demonstrates how to create and use an OpenFileDialog control in Silverlight using XAML and C#.
  • Silverlight Canvas ControlDec 02, 2008. The Canvas control, used as a container for child controls, defines functionality to position the child controls. This article demonstrates how to create and use a Canvas control in Silverlight using C# and XAML.
  • Ellipse in SilverlightDec 07, 2008. This article demonstrates how to create and use an Ellipse control in Silverlight using XAML and C#.
  • Line in SilverlightDec 09, 2008. This article demonstrates how to create and use a Line control in Silverlight using XAML and C#.
  • Rectangle in SilverlightDec 11, 2008. This article demonstrates how to create and use a Rectangle control in Silverlight using XAML and C#.
  • Ployline in SilverlightDec 11, 2008. A polyline is a collection of connected straight lines. This article demonstrates how to create and use a Polyline control in Silverlight using XAML and C#.
  • Label Control in SilverlightDec 14, 2008. This article demonstrates how to use a Label control in Silverlight using XAML and C#.
  • Polygon in SilverlightDec 15, 2008. A polygon is a series of connected lines which is a closed shape. A closed shape is a shape that has same start point and end point. This article demonstrates how to create and use a Polygon control in Silverlight using XAML and C#.
  • C# and XAML within a Silverlight 2 context - INotifyCollectionChanged implementation: Part VDec 18, 2008. In this article I will demonstrate different techniques of how implement the INotifyCollectionChanged interface as a part of the article how does XAML interact with C#
  • C# and XAML within a Silverlight 2 context? - Binding process: Part IIIDec 18, 2008. In this article I will continue with the Binding process and I will demonstrate binding technique but from the C# code behind this once.
  • C# and XAML within a Silverlight 2 context - Data Validation: Part VIDec 18, 2008. In this article, I will demonstrate how to implement a validation logic as a part of the article how XAML
  • XAML and C# -Introduction: Part IDec 18, 2008. This article is supposed to be an introduction to Data Binding logic within Silverlight 2 context, five questions are introduced in this context and they will be answered briefly in this introductry article and in more details in the subsequent parts.
  • C# and XAML within a Silverlight 2 context - INotifyPropertyChanged implementation: Part IVDec 18, 2008. In this article, I will expose the implementation technique of the INotifiedPropertyChanged interface as a part of the article How does XAML interact with the C# code
  • Advanced Calculator in C#Dec 22, 2008. This is advanced calculator developed in C#.Net.
  • XAML and C# within a Silverlight 2 context - Binding process: Part IIDec 22, 2008. In this article, I will show different techniques to interact with a given XAML UI with a C# code behind object.
  • Dependency Property in XAML Dec 23, 2008. This article will exaplain about Dependency Property in XAML and WPF.
  • Hyperlink in SilverlightDec 24, 2008. This article demonstrates how to use a hyperlink button in Silverlight using XAML and C#.
  • TextBox in SilverlightDec 26, 2008. This article demonstrates how to create and use a TextBox control in Silverlight using XAML and C#.
  • TextBlock in SilverlightDec 29, 2008. A TextBlock control in .NET 3.5 provides a lightweight control for displaying small amounts of flow contents. This tutorial demonstrates how to create and use a TextBlock control in Silverlight using XAML and C#.
  • C# and XAML within a Silverlight 2 context - Data conversion: Part VIIDec 29, 2008. In this article I will show how to implement a customized converter as a part of the article how does XAML interact within C# code.
  • C# and XAML within a Silverlight 2 context? - Binding Modes: Part VIIIDec 30, 2008. In this article I will expose the different binding modes.
  • (WPF) Windows Presentation Foundation - FAQJan 02, 2009. In this section we will make a quick walkthrough of WPF which will help you understand WPF instantly.
  • TextBox in WPFJan 05, 2009. This article demonstrates how to create and use a TextBox control in WPF using XAML and C#.
  • ComboBox in XAMLJan 06, 2009. ComboBox is the most useable control in programming. In .NET 3.0 it is different from all previous version of .NET.
  • Drawing Bezier Curves in WPFJan 30, 2009. This article shows how to implement Bezier curves in WPF.
  • Button Control in WPFFeb 02, 2009. This tutorial demonstrates how to create and use a Button control in WPF using XAML and C#.
  • WrapPanel in WPFFeb 05, 2009. A WrapPanel control is used to arrange child controls to arrange vertically or horizontally. This article demonstrates how to create and use a WrapPanel control in WPF using XAML and C#.
  • WCF Features in .NET Framework 4.0Feb 08, 2009. WCF providing a way to define service contracts and to configure endpoint definitions using the declarative XAML in .NET Framework 4.0.
  • WPF LinearGradientBrush using XAMLFeb 25, 2009. This article and code snippet explains how to fill gradient color in the background of controls in WPF using XAML.

About Calculator-in-XAML

NA

SPONSORED BY

File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!
Download Free eBooks