The Last Word

In this chapter, you took a tour through a simple XAML file and learned its syntax at the same time. Here's what you saw:

  • You considered key XAML ingredients, such as type converters, markup extensions, and attached properties.

  • You learned how to wire up a code-behind class that can handle the events raised by your controls.

  • You considered the compilation process that takes a standard WPF application into a compiled executable file. At the same time, you took a look at three variants: creating a WPF application through code alone, creating a WPF page with nothing but XAML, and loading XAML manually at runtime.

Although you haven't had an exhaustive look at every detail of XAML markup, you've learned enough to reap all its benefits. ...

Get Pro WPF in C# 2008: Windows Presentation Foundation with .NET 3.5, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.