title: Visual Studio WPF Window shrinks on run?
body: <p><em>I was used to Windows Forms and non-resizeable windows when I posted this question, so I did not understand how to make content ajustable to the window. However, now that I understand how to use margins and other properties that allow for "responsive" windows, I highly recommend <strong>not</strong> to use this method. Use margins and alignment instead.</em></p>
  
  <hr>
  
  <p>I've been working with WPF.NET for quite a while now, but there is a problem that has been bugging me since I first started using it in Visual Studio. It seems that when I run my program, the windows shrinks by 10 pixels, in comparison to the designer display.</p>
  
  <p>Here are some pictures to better explain my problem:</p>
  
  <p>Designer mode display:</p>
  
  <p><img src="https://i.stack.imgur.com/RqA6G.png" alt="enter image description here"></p>
  
  <p>Actual window when ran: </p>
  
  <p><img src="https://i.stack.imgur.com/s0Pue.png" alt="enter image description here"></p>
  
  <hr>
  
  <p>This has only been occuring in WPF. It does not happen in Windows Forms. It has been happening in VS 2012 and VS 2013.</p>
  
  <p>Is there any way to solve this?</p>