O'Reilly logo

WPF in Action with Visual Studio 2008 by Maxx Daymon, Arlen Feldman

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. Resources, styles, control templates, and themes

This chapter covers:

  • Resources
  • Styles
  • Control templates
  • Themes
  • The similarities between Windows XP and a certain children’s program

Even the title for this chapter is exhausting. It isn’t as bad as it sounds, though—all these topics are related. Styles let you combine a set of attributes together and give them a name. You can then apply that style to an element (such as a control). Control templates are special styles that apply to the look-and-feel and behavior of controls. Resources are blobs of content that you can store in your XAML. They relate to the other topics because styles are stored in resources, and control templates are just types of styles. A theme is a collection of ...

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