O'Reilly logo

Beginning Silverlight 4 in C# by Robert Lair

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

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 ...

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