Chapter 5. Styles, Templates, and UserControls

In the previous chapter you learned how to create a user interface via Expression Blend and the WPF and/or Silverlight control libraries. The point of this chapter is to explore a collection of interconnected topics that allows you to deeply customize how these controls render their final visual output. The first part of this chapter will examine the WPF and Silverlight style mechanism. As you may know, styles serve the same general purpose as a web-centric cascading style sheet, in that both techniques provide a way to ensure that all instances of a given control (a Button, a TextBox, etc.) share the same property settings (fonts, colors, sizes, and so forth).

The next topic examined in this chapter ...

Get Pro Expression Blend 4 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.