July 2015
Intermediate to advanced
1300 pages
87h 27m
English
The goal of the next example is to show how simple it is to create tabular data representations, also taking a look at necessary objects for performing data-binding in code. To accomplish this, first divide the default Grid into two columns as follows:
<Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="200"/> <ColumnDefinition/> </Grid.ColumnDefinitions></Grid>
Next, add a ListBox control either by dragging it from the Toolbox or by writing the following code (for better layout purposes, ensure that you place it in the left column):
<ListBox Name="CustomersListBox" Grid.Column="0"/>
This ListBox stores a list of customers’ names ...