title: How do I customize the WPF StatusBar layout?
body: <p>Adding more than one child to a WPF <code>StatusBar</code> results in poor layout with little option to customize. For example, this code:</p>
  
  <pre><code>&lt;Window x:Class="StatusBar.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;DockPanel&gt;
          &lt;StatusBar DockPanel.Dock="Bottom"&gt;
              &lt;StatusBarItem&gt;
                  &lt;TextBlock&gt;Ready&lt;/TextBlock&gt;
              &lt;/StatusBarItem&gt;
              &lt;StatusBarItem&gt;
                  &lt;TextBlock&gt;Set&lt;/TextBlock&gt;
              &lt;/StatusBarItem&gt;
          &lt;/StatusBar&gt;
  
          &lt;Label&gt;Main Content&lt;/Label&gt;
      &lt;/DockPanel&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>Results in:</p>
  
  <p><img src="https://i.stack.imgur.com/h6tNz.png" alt="enter image description here"></p>
  
  <p>This is not the ideal layout, since the "Set" is squeezed right up against the "Ready".</p>
  
  <p><strong>How do I gain full control over the layout of the WPF <code>StatusBar</code> control?</strong></p>