We want to add the possibility to add a new category to the main window of our application. For this we need two textboxes where the user can enter the category name and description, we also need a button to trigger the creation of the category.
MainWindow; set the row height to
*. This will be the fourth row so far. In this row, we define another grid called
CategoryGrid, which will contain all the controls we need to create a new category. This new grid should look similar to the following code snippet:
<Grid x:Name = "CategoryGrid" Grid.Row="3" Margin="0 10 0 0"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> ...