C H A P T E R 5
Data Binding and Silverlight List Controls
The previous chapter focused on a few of the form controls contained in Silverlight. In this chapter, you will look at two controls that are made to display lists of data: 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 ...
Get Beginning Silverlight 5 in C#, Fourth Edition 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.