title: Disable maximizing WPF window on double click on the caption
body: <p><strong>How to disable maximizing WPF window on double click on the caption and leave resizing available?</strong></p>
  
  <hr>
  
  <p>I know that <em>ResizeMode</em> disables maximizing, but it also prevents resizing the form</p>
  
  <pre><code>ResizeMode="CanMinimize"
  </code></pre>
  
  <p>I know how to remove maximize and minimize buttons, but it's still possible to maximize by double click on the caption.</p>
  
  <p>In WinForms it can be achieved easily. Just set <em>FormBorderStyle</em> from <em>None</em> to <em>FixedSingle</em> or <em>Fixed3D</em>. But it's not an option in WPF any more.</p>
  
  <hr>
  
  <p>P.S. I'm trying some tricks with handling WM_GETMINMAXINFO, WM_SYSCOMMAND, etc. But <a href="https://stackoverflow.com/a/18707977/968003">seems it's not working</a>...</p>