title: Way to make WPF DockPanel auto-resize based on its children's size?
body: <p>Right now I have a DockPanel that contains a toolbar and BrowserWindow. When I re-size the BrowserWindow to fit content, I want that change to propagate up into the DockPanel and re-size automatically. Is there a setting for this?</p>
  
  <p>So the layout of my app is essentially:</p>
  
  <pre><code>-Browser Control Class
  
  --DockPanel
  
  ----Toolbar (docked to Top)
  
  ----Browser Window Class
  
  ------Grid
  
  --------Menu
  
  --------Embedded Browser
  </code></pre>
  
  <p>Basically I want the size that I set on my Browser Window Class to automatically re-size the DockPanel.</p>
  
  <p>Before applying size to Browser Window:</p>
  
  <p><a href="https://imgur.com/qlgwA" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ONbHC.jpg" alt="http://imgur.com/qlgwA"></a></p>
  
  <p>After applying size to Browser Window (I want to get rid of that extra space surrounding the embedded browser):</p>
  
  <p><a href="https://imgur.com/YFJrh" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lpkr0.jpg" alt="http://imgur.com/YFJrh"></a></p>