title: Fill all available space in StackPanel
body: <pre><code>&lt;Window x:Class="DataBinding_01.MainWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          Title="MainWindow" Height="350" Width="525"&gt;
      &lt;StackPanel Height="Auto" Name="stackPanel1" Width="Auto"&gt;        
          &lt;TextBox Height="23" Name="textBox1" Width="Auto" /&gt;
          &lt;TextBox Height="23" Name="textBox2" Width="Auto" /&gt;
          &lt;Button Content="Button" Name="button1" Width="Auto" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" /&gt;
      &lt;/StackPanel&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>I want the Button fill all available space on the StackPanel. How can I do it?</p>