hi there is xaml code but it doesn't work
<Grid Name="mainGrid" Background="#EEE"> <Grid.RowDefinitions> <RowDefinition Height="25*"/> <RowDefinition Height="60*" Name="mainGridcentre"/> <RowDefinition Height="15*"/> </Grid.RowDefinitions> <Grid Name="centerGrid" Grid.Row="1" Background="Black" Panel.ZIndex="1" Width="{Binding ElementName=mainGridcentre, Path=Height}" ShowGridLines="True"> <Grid.RowDefinitions> <RowDefinition></RowDefinition> <RowDefinition></RowDefinition> <RowDefinition></RowDefinition> <RowDefinition></RowDefinition> <RowDefinition></RowDefinition> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition></ColumnDefinition> <ColumnDefinition></ColumnDefinition> <ColumnDefinition></ColumnDefinition> <ColumnDefinition></ColumnDefinition> <ColumnDefinition></ColumnDefinition> </Grid.ColumnDefinitions> </Grid> <Border Grid.Row="1" Background="#14BDAC"></Border> <Label FontWeight="Bold" Background="#14BDAC" Width="200" Height="50" Content="НАЧАТЬ ЗАНОВО" Grid.Row="2" FontSize="20" FontStyle="Normal" Foreground="White" ForceCursor="True" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"></Label> </Grid>
namely, the binding of the width to the row height of another grid does not work
Width="{Binding ElementName=mainGridcentre, Path=Height}" ShowGridLines="True"