I have the following .XAML:
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Expander Grid.Row="0">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="5"/>
</Grid.RowDefinitions>
<ListView Grid.Row="0"/>
<GridSplitter Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Top" ShowsPreview="true" ResizeDirection="Rows" Height="5"/>
</Grid>
</Expander>
<Expander Grid.Row="1">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="5"/>
</Grid.RowDefinitions>
<ListView Grid.Row="0"/>
<GridSplitter Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Top" ShowsPreview="true" ResizeDirection="Rows" Height="5"/>
</Grid>
</Expander>
There are 2 expanders with gridsplitters. I want to achieve the following 2 things:
(1) Whenever one expander collapses, the other expander should fill up the space
(2) Whenever one gridsplitter moves, the 2 expanders automatically adjusts their heights to fill up the space.
The behavior is expected to be similar to the Windows Resource Manager Overview window's behavior. Any advice and insight is appreciated