title: Docking a WPF window to left/right sides of the screen windows 7/8
body: <p>In both Window Forms and WPF there is this <code>.WindowState</code> which I can set to </p>
  
  <p><code>Minimized</code>,
  <code>maximized</code> or <code>Normal</code></p>
  
  <p>I wonder if there is anything similar already implemented for docking the window to the left/right sides of the screen like with the <kbd>Win</kbd> + <kbd>&lt;-</kbd> / <kbd>-></kbd> keys for Windows 7/8?</p>
  
  <p>I've googled and it seems people call Win32 APIs and implement this on their own</p>
  
  <p>Am I supposed to write a custom docking code or is there a simple flag I can set somewhere like the <code>WindowState</code> ?</p>