O'Reilly logo

Pro Silverlight 5 in C# by Matthew Macdonald

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

C H A P T E R  15

Control Templates

In the previous chapter, you learned how to use styles and behaviors to reuse user-interface property settings and code. In this chapter, you'll explore two more powerful tools: control templates and custom controls.

Templates allow you to change the visual “face” of any common control. In other words, if you can't get the custom appearance you want by tweaking properties alone (and often you can't), you can almost certainly get it by applying a new template. And although creating custom templates is more work than just setting control properties, it's still far simpler and more flexible than developing an entirely new custom control. Furthermore, if the control that you're customizing supports the parts ...

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