Populating a Summary List with Data
As you've seen, you populate the DataGrid
and ListBox
controls in exactly the same manner as one another, by assigning/binding a collection or collection view to their ItemsSource
properties.
Let's now look into this topic further, and investigate the type of data that these controls will accept. We'll introduce the ObservableCollection<T>
type, and then introduce the concept of collection views that will allow us to manipulate the data displayed in the summary list without affecting the underlying collection. We'll then demonstrate how you can go about wiring these controls up to this data.
Note A key concept ...
Get Pro Business Applications with Silverlight 5 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.