title: List not filling maximum space in Stack panel
body: <p>I have the following code, I think the List should fill out the entire space occupied by the stack panel, I tried using Grid but it didn't work.</p>
  
  <pre><code>&lt;StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch" DockPanel.Dock="Top"&gt;
          &lt;ListBox x:Name="substanceList" ItemsSource="{Binding Source={StaticResource symTable}}" DockPanel.Dock="Top" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" ScrollViewer.HorizontalScrollBarVisibility="Disabled"&gt;
              &lt;ListBox.ItemsPanel&gt;
              &lt;ItemsPanelTemplate&gt;
                  &lt;StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch"/&gt;
              &lt;/ItemsPanelTemplate&gt;
          &lt;/ListBox.ItemsPanel&gt;
              &lt;ListBox.ItemTemplate&gt;
                  &lt;DataTemplate&gt;
                      &lt;StackPanel Orientation="Horizontal"&gt;
                          &lt;TextBlock Text="{Binding Name, Mode=TwoWay}" VerticalAlignment="Center"/&gt;
                          &lt;TextBox Text="{Binding Count,  Converter={StaticResource stringToIntConverter}, Mode=TwoWay}" VerticalAlignment="Center" BorderThickness="0"/&gt;
                          &lt;Separator/&gt;
                      &lt;/StackPanel&gt;
                  &lt;/DataTemplate&gt;
              &lt;/ListBox.ItemTemplate&gt;
          &lt;/ListBox&gt;
          &lt;Button x:Name="graphButtonStackPanel" Content="Graph" Click="graphButtonStackPanel_Click" DockPanel.Dock="Top" HorizontalAlignment="Right"/&gt;
      &lt;/StackPanel&gt;
  </code></pre>