I am confused with GridSplitter objects:
The above has a vertical splitter:
<GridSplitter
Width="5"
Background="LightGray"
Grid.Row="1"
Grid.RowSpan="4"
Grid.Column="0" />
It behaves correctly and resizes the columns.
But I was trying to add a horizontal grid splitter:
<GridSplitter
Width="5"
Background="Black"
VerticalAlignment="Stretch"
ResizeDirection="Rows"
Grid.Row="2"
Grid.Column="0" />
But see the black line? That is in the wrong place. It should be horizontal, between the two GroupBox items:
What is wrong with my markup logic? Interestingly, if I set the VerticalAlignment to Top or Center then the splitter will not even display, let alone work.
Thank you.
Update:
Above is resized control (thanks for your answer). But only the groupbox (in this context) should resize. The content of the groupbox can stay at the top.
Update: Fixed the resizing of controls bu changing the RowDefinition height values from 1* to auto.



VerticalContentAlignment="Top"if the property exists on the GroupBox or setting theVerticalAlignment=Topof the root child element of the GroupBox - NkosiRowDefinitionheights were all set to1*. I changed them toauto. - Andrew Truckle