Creating Master-Details Forms

Similarly to what already happened in Windows Forms, creating master-details forms in WPF 4.6 is also straightforward. This also enables you to understand other important concepts for the data-binding. Add a new window to the current project and name it MasterDetails. Divide the default Grid into four cells, so that you can also add special buttons, as follows:

<Grid>    <Grid.ColumnDefinitions>   <ColumnDefinition Width="200"/>   <ColumnDefinition/>   </Grid.ColumnDefinitions>   <Grid.RowDefinitions>      <RowDefinition/>      <RowDefinition Height="50"/>   </Grid.RowDefinitions></Grid>

Repeat the step of adding a ListBox and binding the customer’s CompanyName property, just as in the ...

Get Visual Basic 2015 Unleashed 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.