Chapter 2. An Introduction to Data Binding

In this chapter, we will cover:

  • Displaying data in Silverlight applications
  • Creating dynamic bindings
  • Binding data to another UI element
  • Binding collections to UI elements
  • Enabling a Silverlight application to automatically update its UI
  • Obtaining data from any UI element it is bound to
  • Using the different modes of data binding to allow persisting data
  • Data binding from Expression Blend 4
  • Using Expression Blend 4 for sample data generation


Data binding allows us to build data-driven applications in Silverlight in a much easier and much faster way compared to old-school methods of displaying and editing data. This chapter and the following one take a look at how data binding works. We'll start by looking ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.