O'Reilly logo

Illustrated WPF by Daniel Solis

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 13. Control Templates

Separating Appearance from Behavior

One of the major features of WPF is that it allows you unprecedented control of the way your applications looks. This extends even to the appearance of the standard controls.

So far, you've seen that you can change some of the basic characteristics of controls, such as their content, background colors, and margin characteristics. But it goes much deeper than that. You can change the entire look of a control—without changing its fundamental behavior.

The reason for this is that the appearance of a control isn't hard-coded into the control itself, as it has been in previous frameworks. In previous frameworks, the control classes were implemented as wrappers around the controls built ...

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