1. Open visual studio 2008 IDE
  2. File>New>Project(Open New dialog box)>visual c#(Select)>Wpf Application(Select)
  3. Now in the Designer window (Window1.xaml) find the following line 'Title="Window1" Height="300" Width="300">' Edit Title name like 'Title="Helloworld" Height="300" Width="300">' then save it and press F5 button(ur application will be run)[Note:Title,indicate the title bar name.Height,width,indicate ur application or form size.] 
  4. For practice purpose just right click ur application and try different properties of form (like chang Backgroun,Bitmap effect etc)
  5. click on form and goto Toolbox(Double click on Button),New Button will be added in our container form
    Or

    Add followin line Before '<Button height="23" horizontalalignment="Left" margin="10,10,0,0" name="button1" verticalalignment="Top" width="75">Button </Button >'
    [Note:'Width="75">Button </Button >'replace this code with ' Width="75">Hello </Button >' Also right click on button and click on properties and change different properties.]
  6. Then Double Click on Button a new (Window1.xaml.cs ) window display.
  7. Then add following code
  8. private void button1_Click(object sender, RoutedEventArgs e)
            {
                MessageBox.Show("Wellcome to WPFsolution.blogspot.com");
            }
    
  9. then Execute by using F5 key
Thanks,For Visiting. If any problem occurred just leave a comment