title: How to make controls fill the container in WPF?
body: <p>Below is my xaml code :</p>
  
  <pre><code>&lt;Window x:Class="ScoresBank.MainWindow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      Title="MainWindow"&gt;
  &lt;DockPanel LastChildFill="True"&gt;
      &lt;WrapPanel DockPanel.Dock="Top"&gt;
          &lt;ToolBar Height="25"&gt;&lt;/ToolBar&gt;
      &lt;/WrapPanel&gt;
      &lt;WrapPanel DockPanel.Dock="Bottom"&gt;
          &lt;StatusBar Name="stbBottom" Height="25"
                     BorderThickness="2"
                     BorderBrush="Black"&gt;Example&lt;/StatusBar&gt;
      &lt;/WrapPanel&gt;
      &lt;StackPanel DockPanel.Dock="Left"&gt;
          &lt;DockPanel LastChildFill="True"&gt;
              &lt;WrapPanel DockPanel.Dock="Top"&gt;
                  &lt;Button Name="btnBrowseTags"&gt;TAGS&lt;/Button&gt;
                  &lt;Button Name="btnBrowseTitles"&gt;TITLES&lt;/Button&gt;
              &lt;/WrapPanel&gt;
              &lt;ComboBox DockPanel.Dock="Top" Name="cbxCategory"&gt;
                  Example
              &lt;/ComboBox&gt;
              &lt;WrapPanel DockPanel.Dock="Bottom"&gt;
                  &lt;TextBox Name="txtKeyword"&gt;&lt;/TextBox&gt;
                  &lt;Button Name="btnFind"&gt;Find&lt;/Button&gt;
              &lt;/WrapPanel&gt;
              &lt;ListBox Name="lbxBrowse"&gt;
              &lt;/ListBox&gt;
          &lt;/DockPanel&gt;
      &lt;/StackPanel&gt;
      &lt;StackPanel DockPanel.Dock="Right"&gt;
          &lt;Button&gt;Example&lt;/Button&gt;
      &lt;/StackPanel&gt;
      &lt;Canvas&gt;
  
      &lt;/Canvas&gt;
  &lt;/DockPanel&gt;
  </code></pre>
  
  <p></p>
  
  <p>And this is my current layout view : <img src="https://i.stack.imgur.com/emH2E.png" alt="enter image description here"></p>
  
  <p>So, what I mean with filling the container are :</p>
  
  <ol>
  <li>Making <code>lbxBrowse</code> to fill the mid-space of the <code>DockPanel</code> inside the left <code>StackPanel</code>.</li>
  <li>Making <code>txtKeyword</code> to fill the <code>WrapPanel</code>.</li>
  <li>Making <code>stbBottom</code> to fill the <code>WrapPanel</code>.</li>
  </ol>
  
  <p>What I've tried :</p>
  
  <ol>
  <li>It seems i've put them in a <code>DockPanel</code> with <code>LastChildFill="True"</code>. But it seems doesn't work.</li>
  <li>I don't know about this, since it's not possible to put it into a <code>DockPanel</code> first.</li>
  <li>I don't know anything about this.</li>
  </ol>
  
  <p>I don't use fixed size, since I need them to keep neat even when resized in multiple screen resolution. The fixed size on <code>ToolBar</code> and <code>StatusBar</code> seems required, otherwise, the text will be unseen.</p>
  
  <p>P.S. If possible, I prefer the solution to be XAML code, rather than the C# code. Otherwise, C# code is fine too.</p>
  
  <p>Thank you.</p>