Simple WPF Controls:
In this example we define image, button and label controls and run the application to display them to the user.
1. Open your Visual C# Express/Professional Edition.Go to FileàNew Projectàselect WPF application and name it as SimpleWPF.

2.You see the following window1.xaml file that displays the default window1 and xaml code at the bottom of the screen.

3.To add an image to your project go to solution explorer right click on it Add Existing item-->Browse the required image and add it.

4.You type in the following xaml code in the window at the bottom.

5. In the code above is the application window and it is the root element. A window layout container can have only one child control, in this case it is the . The other types of layour containers available are ,