May 2010
Intermediate to advanced
1272 pages
61h 18m
English
ListBoxThe ListBox control enables listing a series of items. The good news is that you are not limited to text items but you can also add complex items. Each item is represented by a ListBoxItem object, nested in the ListBox. The following example shows how you can declare a ListBox in XAML code:

Typically a ListBox is populated at runtime via data-binding. Basically concepts are the same as illustrated for the ComboBox control, so take a look there for a recap. To accomplish data-binding, simply specify the ItemsSource markup extension as follows:
<ListBox Name="ListBox1" ItemsSource="{Binding}"/>
Then in Visual Basic code you assign the
Read now
Unlock full access