title: Stick to the bottom of a StackPanel
body: <p>In my window, there is a Grid that takes up 100% of the available vertical space. Inside that Grid is a StackPanel with another StackPanel and a Frame inside. I would like to have that Frame stick to the bottom of the parent StackPanel.</p>
  
  <pre><code>&lt;StackPanel&gt;
      &lt;StackPanel&gt;
         //normal content
       &lt;/StackPanel&gt;
       &lt;Frame /&gt; // should stick to the bottom
  &lt;/StackPanel&gt;
  </code></pre>
  
  <p>So that, for example, when the user resizes the Window and the Grid gains height, the Frame inside sticks to the bottom.</p>
  
  <p>I have tried various things, using <code>VerticalAlign="Stretch"</code> or a DockPanel and assigning the Frame a <code>DockPanel.Dock="Bottom"</code>, but to no success. I'd be thankful for a hint or two. I don't need the StackPanel to be a StackPanel, it can also be a DockPanel.</p>