O'Reilly logo

WPF Recipes in C# 2008: A Problem-Solution Approach by Sam Noble, Sam Bourton, Allen Jones

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 6. Working with Styles, Templates, Skins, and Themes

One of the most remarkable aspects of WPF is the ability to separate and customize the visual appearance of user interface elements from the built-in behavior and functionality they provide. You can do this using styles and control templates.

The recipes in this chapter describe how to:

  • Create custom visual styles for control elements (recipes 6-1 and 6-2)

  • Customize, override, inherit from, and dynamically change these visual styles (recipes 6-3, 6-4, 6-5, 6-6, 6-7, and 6-8)

  • Set a style programmatically and ignore an implicit style (recipes 6-9 and 6-10)

  • Create styles to control the appearance of items in a collection (recipes 6-11 and 6-12)

  • Create custom control templates that specify how ...

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