Chapter 3. Advanced Data Binding

In this chapter, we will cover:

  • Hooking into the data binding process
  • Replacing converters with Silverlight 4 BindingBase properties
  • Validating data bound input
  • Validating data input using attributes
  • Validating using IDataErrorInfo and INotifyDataErrorInfo
  • Using templates to customize the way data is shown by controls
  • Building a change-aware collection type
  • Combining converters, data binding, and DataContext into a custom DataTemplate

Introduction

In the previous chapter, we explained in detail the concepts behind data binding and their implementation in Silverlight 4. Reflecting on what we learned in the previous chapter, we may start to think that data binding works as some kind of black box into which we insert the data ...

Get Silverlight 4 Data and Services Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.