O'Reilly logo

Sams Teach Yourself WPF in 24 Hours by Christopher Bennage, Rob Eisenberg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Introducing the Font Viewer

What You’ll Learn in This Hour:

  • How to set up a new WPF project

  • Some basics of Visual Studio

  • The structure of a project

  • XAML files

  • Code-behind files

In this hour we’ll begin developing our first WPF application, a small but useful utility for browsing the fonts currently installed on your system. We’ll also learn the basics of setting up a WPF project in Visual Studio.

Building the Font Viewer

Let’s begin by talking about the application we would like to build.

It would be convenient to have a lightweight utility that would allow us to see all the fonts currently installed on our system. Additionally, we could enter some sample text and see it rendered in the selected font.

To do this, we’ll need the following:

  • A list ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required