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