O'Reilly logo

Silverlight 4 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

Customizing the DataForm using a custom DataTemplate

In order to customize the DataForm, you can use helpers in the form of Data Annotations as seen in the Customizing the DataForm using Data Annotations recipe. But sometimes this isn't sufficient. You might have a requirement where generating the fields automatically, even with the use of Data Annotations , isn't sufficient: you need more control. But at the same time, you'd still like to use the built-in navigation capabilities, read/edit-mode, and so on of the DataForm.

In this recipe, you'll learn how to do just that. You'll learn to completely customize the way the DataForm shows your data by disabling automatic generation and defining the DataTemplate yourself.

Getting ready

We're starting ...

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