I'm new to WPF and I'm trying to do following:
- I want to set the
Column0
width equal to theRow0
height. - The width of all the columns should be same.
- The height/width of grid should not be constant.
But the Grid height is not becoming same as the Grid width. Here is my WPF Grid code:
<Grid.ColumnDefinitions>
<ColumnDefinition x:Name="Column0" Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition x:Name="Row0" Height="{Binding ElementName=grid,
Path=ColumnDefinitions[0].Width}" />
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>