title: Change WPF window Size programmatically in MVVM
body: <p>How do you change the size of your Window in WPF programmatically using an MVVM approach?</p>
  
  <p>I am setting the window height to 400 from XAML and on click of a button on the form trying to increase the height to 500.</p>
  
  <p>In my button's ICommand I am using:</p>
  
  <pre><code>Application.Current.MainWindow.Height = 500;
  </code></pre>
  
  <p>But it's not doing anything.</p>