Once the project is created, follow these steps to design the UI and do a multi-binding between multiple elements:
- From the Solution Explorer, open the MainWindow.xaml page.
- Inside the default Grid panel, create a few rows and columns, so that we can position elements at specific cells. Let's divide the Grid into five rows and three columns:
<Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition/> <ColumnDefinition Width="90"/> <ColumnDefinition/> </Grid.ColumnDefinitions>
- Inside the Grid panel, insert the following XAML code snippet to add few labels and input boxes inside the window:
<TextBlock Text="...