Chapter 2. Getting started with WPF and Visual Studio 2008

 

This chapter covers:

  • Building a simple WPF application
  • Targeting different versions of the .NET runtime
  • The joy of TextBlocks
  • A guided tour of Visual Studio 2008
  • Why Kernighan and Ritchie won’t return our phone calls

We have a confession to make. We hate Hello, World! applications. When we first started this book, we decided categorically that we were not going to put one in—particularly not one that looks almost identical to one you might have built in any other Windows presentation medium for the last decade.

However...

We need to accomplish a few things before we can move on to the interesting stuff. First, we need to go through the basic steps for creating a project in the environment to make sure that everything is set up and building correctly. Second, we want to talk about some options related to applications with WPF, and doing that with something simple is more straightforward. Finally, we want to point out the various features of Visual Studio 2008 for working with WPF.

Ignoring our cursing of Kernighan and Ritchie for starting the practice in the first place, we present a Hello, World! application for your edification and enjoyment.

2.1. Your grandpa’s Hello, World!

2.2. The application definition

2.3. A tour of WPF in Visual Studio 2008

2.4. Summary

sitemap