Last Word

In this chapter, you saw how styles allow you to define named sets of property values and easily apply them to the appropriate element.

Styles are a key ingredient that support many other WPF features. For example, styles give you a way to apply new control templates to a range of controls; use different formatting, depending on the current system theme; dynamically reskin your application; and enhance elements with automatic animations. You'll learn about these techniques in the chapters to come. (In Chapter 15, you'll explore control templates, themes, and application skinning. In Chapter 21, you'll delve into animations.) But first, it's time to tackle another core WPF topic: its rich two-dimensional drawing features.

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.