March 2010
Intermediate to advanced
1216 pages
33h 44m
English
In most data binding scenarios, you aren't binding to a single object but to an entire collection. Figure 20-1 shows a familiar example—a form with a list of products. When the user selects a product, its details appear on the right.
In Chapter 19, you learned to build exactly this sort of form. Here's a quick review of the basic steps:
First you need to create the list of items, which you can show in an ItemsControl. Set the DisplayMemberPath to indicate the property (or field) you want to show for each item in the list. This list shows the model name of each item:
<ListBox ...
Read now
Unlock full access