title: WPF MVVM - How to Show a view from MainWindowViewModel upon Clicking on button
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2108949/the-best-approach-to-create-new-window-in-wpf-using-mvvm">The best approach to create new window in WPF using MVVM</a>  </p>
  </blockquote>
  
  
  
  <p>Hello Friends,</p>
  
  <p>I have two view <strong>MainWindowView</strong> and <strong>AddCustomerView</strong>. I have menu containing buttons in MainwindowView.xmal. </p>
  
  <p>How could i popup <strong>AddCustomerView from MainWindowViewModel by clicking on button.</strong></p>
  
  <p>My App.xmal.cs for Startup code is..</p>
  
  <pre><code>base.OnStartup(e);
  MainWindow window = new MainWindow();
  var viewModel = new MainWindowViewModel();
  window.DataContext = viewModel;
  window.Show();
  </code></pre>
  
  <p>What is the code for showing AddCustomerView in buttonexecute code.</p>
  
  <pre><code> public void AddNewCustomerWindowExecute() //This is button handler
   {
       // How to show AddCustomerView from MainWindowViewModel
   }
  </code></pre>