title: Height of the WPF window is not getting changed
body: <p>I have wpf window in that I have taken rowdefinition and its height in designer is zero. Now in that window there is one button and in button click event I change the height of the rowdefition dynamically thus height of the window is changed. But after run the application if I dragged that window and click on that button then height of the window cannot be changed dynamically. But if I don't drag the window then height of the window can be changed, what the problem can be in the dragging window scenario ?</p>
  
  <p>These are the properties I have set for the window.</p>
  
  <pre><code>MinWidth="400"  CanDrag="True" ShowStatusBar="False" CanResize="True"
  </code></pre>
  
  <p>RowDefinition in designer:</p>
  
  <pre><code>&lt;Grid&gt;
          &lt;Grid.RowDefinitions&gt;
              &lt;RowDefinition x:Name="rowMapping" Height="0"/&gt;
          &lt;/Grid.RowDefinitions&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>This is how I change the height of the rowdefinition in code behind.</p>
  
  <pre><code>rowMapping.Height = new GridLength(420);
  </code></pre>