O'Reilly logo

XAML Unleashed by Adam Nathan

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

Setting Template Inside a Style

It’s worth emphasizing why setting the Template property inside a Style is so powerful. It has two important advantages:

Image It gives you the effect of default templates when combined with an implicit Style, as leveraged in Listing 18.1. Independent of this, there is no such thing as a default control template.

Image It enables you to provide default yet overridable property values that control the look of the template. In other words, it enables you to respect the templated parent’s properties but still provide your own default ...

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