title: C# disable aero snap for WPF window
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2470685/disable-aero-snap-wpf">disable Aero Snap (wpf)</a>  </p>
  </blockquote>
  
  
  
  <p>I have an application in C# WPF. I want the main window to have fixed size. To achieve this, I have set the height and max height, width and max width, to the same values. Everything looks fine, but I want also to disable Aero snap effect for this window only.</p>
  
  <ol>
  <li><p>The solution to disable Aero snap from Windows Registry or Control Panel is excluded.</p></li>
  <li><p>Setting the ResizeMode of the window to "NoResize" is also excluded, because in this way the window border dissapear too.</p></li>
  </ol>
  
  <p>Do you have any working solution for this problem in C# ?</p>
  
  <p>Thank you very much.</p>