title: Minimize window from usercontrol in wpf
body: <p>I want to minimize my window , when I open other window/</p>
  
  <p>This is a method in my user control which is in another user control, which is in another user control too.</p>
  
  <pre><code>WindowUploadFiles windowUploadFiles=new WindowUploadFiles();
  //Minimize() - how to ?
              windowUploadFiles.ShowDialog();
  // Maximize() - how to ?
  </code></pre>
  
  <p>Has anybody experience with this problem ?</p>