title: StackPanel in StatusBar won't stretch
body: <p>When I add StackPanel to the StatusBar as last StatusBarItem it won't fill up all additional space. I wonder why is that since StatusBar internally uses DockPanel as ItemsPanel.</p>
  
  <p>Here's a sample code:</p>
  
  <pre><code>&lt;Window x:Class="Foo.MainWindow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:local="clr-namespace:Zadatak1"
      Title="MainWindow"
      WindowState="Maximized"&gt;
  &lt;DockPanel&gt;
  &lt;StatusBar DockPanel.Dock="Bottom"&gt;
          &lt;StatusBarItem DockPanel.Dock="Left" Background="SkyBlue"&gt;
              &lt;Label&gt;Status....&lt;/Label&gt;
          &lt;/StatusBarItem&gt;
          &lt;StatusBarItem Background="Red" DockPanel.Dock="Right" HorizontalAlignment="Right"&gt;
              &lt;StackPanel Orientation="Horizontal"&gt;
                  &lt;Label&gt;Time:&lt;/Label&gt;
                  &lt;Label&gt;02:48:AM&lt;/Label&gt;
              &lt;/StackPanel&gt;
          &lt;/StatusBarItem&gt;
      &lt;/StatusBar&gt;
  &lt;/DockPanel&gt;
  </code></pre>
  
  <p></p>
  
  <p>If I change the order of the elements so Label is first and StackPanel is second, it fills additional space as it should.</p>