O'Reilly logo

Microsoft Silverlight 5 Data and Services Cookbook by Kevin Dockx, Gill Cleeren

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

Using implicit data templates

Applies to Silverlight 5

In the previous recipe, we defined a data template in resources and referred to it from the ListBox control that makes use of this template. With Silverlight 5, another type of data template is added to Silverlight: the implicit data template. Using this type, we define a template for a type and when Silverlight needs to visualize an instance of that type, it uses the template. This functionality has been available in WPF and is now available in Silverlight as well. In this recipe, we'll introduce implicit data templates to visualize data instances.

Getting ready

If you are following along with the recipes, you can continue using the code from the previous recipe. Alternatively, a starter ...

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