title: Auto resize window content in WPF
body: <p>When debugging my WPF programs I have noticed that when the window is the set size, the contols look just fine. But when the window is maximized, the content is positioned at the same place as if window has not resized. I want it so that the content and window resize proportionately. How can I do this? Sorry if it is a noobish question, but I'm kinda new in the WPF era.</p>
  
  <hr>
  
  <p>The XAML code is not completely ready yet but here is some of elements:</p>
  
  <pre><code>&lt;DockPanel&gt;
      &lt;StackPanel DockPanel.Dock="Left"&gt;
      ...
      &lt;/StackPanel&gt;
  
      &lt;TabControl DockPanel.Dock="Right"&gt;
      ...
      &lt;/TabControl&gt;
  
      &lt;ListView&gt;
      ...
      &lt;/ListView&gt;
  &lt;/DockPanel&gt;
  </code></pre>