The Last Word

In the previous chapter, you saw how to use styles to reuse formatting. In this chapter, you learned how to use control templates to make more radical changes. You used the parts and states model to customize a Silverlight control and saw how you can create a respectable button without being forced to reimplement any core button functionality. These custom buttons support all the normal button behavior—you can tab from one to the next, you can click them to fire an event, and so on. Best of all, you can reuse your button template throughout your application and still replace it with a whole new design at a moment's notice.

What more do you need to know before you can skin all the Silverlight controls? In order to get the snazzy ...

Get Pro Silverlight 5 in VB 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.