8. Styles

OVER THE PRECEDING six chapters we have looked at all the pieces that we need to build an application in Windows Presentation Foundation. We’ve seen how an application is constructed out of controls that can be positioned with layout, visualized, and integrated with data, and finally perform a set of actions. The final concept to understand is styles.

Styles are a set of properties and actions to associate with an element. Styles are the aggregators of all customizations; they support all the concepts we’ve learned about so far: changing templates, animations, bindings, commands, and all other features exposed by WPF. Styles can be combined with other resources and packaged into a theme. Themes provide a consistent way for designers ...

Get Essential Windows Presentation Foundation 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.