Binding collections to UI elements
Often, you'll want to display lists of data in your application such as a list of shopping items, a list of users, a list of bank accounts, and so on. Such a list typically contains a bunch of items of a certain type that have the same properties and need to be displayed in the same fashion.
We can use data binding to easily bind a collection to a Silverlight control (such as a
DataGrid) and use the same data binding possibilities to define how every item in the collection should be bound. This recipe will show you how to achieve this.
For this recipe, you can find the starter solution in the
Chapter02/SilverlightBanking_Binding_Collections_Starter folder and the completed solution in the ...