Chapter 5. Data Binding and Silverlight List Controls

The previous chapter focused on the form controls contained in Silverlight. In this chapter, you will look at two controls that are made to display lists of data: the ListBox and DataGrid. These controls are typically bound to data through a technique known as data binding, which I'll explore first.

Data Binding

Through data binding, UI elements (called targets) are "bound" to data from a data source (called the source), as illustrated in Figure 5-1. When the data sources change, the UI elements bound to those data sources update automatically to reflect the changes. The data can come from different types of sources, and the target can be just about any UI element, including standard Silverlight ...

Get Beginning Silverlight 4 in C# now with O’Reilly online learning.

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