I have a (simplified) 2×2 Grid with three controls inside. The left control strechtes over both rows.
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<GridSplitter Grid.Row="0" Grid.Column="1" Height="4" Background="Gray"
HorizontalAlignment="Stretch" VerticalAlignment="Bottom"></GridSplitter>
<GridSplitter Grid.Row="0" Grid.Column="1" Width="4" Background="Gray" Grid.RowSpan="2"
HorizontalAlignment="Left" VerticalAlignment="Stretch"></GridSplitter>
<!-- Simplified content -->
<Button Grid.Row="0" Grid.Column="0" Grid.RowSpan="2">Content</Button>
<Button Grid.Row="0" Grid.Column="1">Content</Button>
<Button Grid.Row="1" Grid.Column="1">Content</Button>
</Grid>
I can’t figure out why these splitters do not work.
I suggest to define the GridSplitter behind the content