You use the
System.Windows.Controls.Image control to show images. To see how the control works, create a new WPF project that will be used for all examples in this chapter and name it DocumentsAndMedia. When ready, drag an
Image control from the toolbox onto the new
Window; then set its dimensions as you like. To view an image, you need to set the
Source property that points to a URI, but you might want to add some images to your project first. As for any other kind of project, it is a good idea to organize contents into subfolders based on their types. So, in Solution Explorer create a new project subfolder called Images. Right-click this folder and then select Add, Existing Item. When the dialog box appears, select the number ...