WPF introduced in the .net framework 3.0. WPF introduced highly rich features for windows client application that includes XAML, data binding, controls, 2-D and 3-D Graphics, Media, Document, Dependency Property etc. apart from this with the help of WPF you can create both standalone application and web based application which is known as XBAP(XAML browser application)

What is XAML

XAML stands for extensible application markup language. It simplifies creating a UI for a .net framework application. XAML allows us to design up and logic on different tools.

How to start with WPF

Open Visual Studio->File->Project Following window will be opened:-

	wpf tutorial

		Figure 1

Select window tab from left and after that select WPF Application. When you click ok you will see two Pages – one is .xaml and second is .xaml.cs


		<Window x:Class="WpfApplication2.MainWindow"
        Title="MainWindow" Height="350" Width="525">

    This is the Example of WPF

I simply add text in the windows.


		using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WpfApplication2
    /// Interaction logic for MainWindow.xaml
    public partial class MainWindow : Window
        public MainWindow()


When I execute this application it will show output as follows:-

		windows presentation foundation

		Figure 2

As you can see that its showing the Title MainWindow. We can customize the window according to us.

For Example

I customize the height and width and Title of the window

		<Window x:Class="WpfApplication2.MainWindow"
        Title="Tech Altum" Height="500" Width="700">

    This is the Example of WPF

Now it will show the following output:-

		windows presentation foundation tutorial

		Figure 3

Email Address

For any query you can send mail at