I'm currrently learning on how to use WPF. And my objective was to create a command that will create grid layout. for example if I click the button1, it will create a Grid
layout like this.
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="50" />
<RowDefinition Height="235*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="113*" />
</Grid.ColumnDefinitions>
<Label Content="Author" Grid.Row="0" Grid.Column="0" />
I'm using WPF and c#.