I have a form with two Grid
elements in a vertical StackPanel
. I would have imagined the bottom Grid
would automatically fill all available space, as I wish it to, but I have set heights on the Grid
rows:
<RowDefinition Height="20" />
<RowDefinition Height="*" />
<RowDefinition Height="25" />
The short rows at the top and bottom are for labels and buttons, respectively. I have tried setting the grid's VerticallAllignment
to Stretch
, to no avail.
How do I anchor the bottom of the bottom grid to the bottom of the form, regardless of the form's height?