title: How to show other window from viewmodel?
body: <p>I have a simple sample that  my sample has 2 window :
   1-ProductlistView 2-ProductEditView (1-ProductlistViewModel 2-ProductEditViewModel)
  I want the user can select a product in my ProductlistView and  edit selected product in ProductEditView ...i'm using from this code in my sample:</p>
  
  <pre><code>   public Class   ProductEditViewModel:ViewModelBase 
      {
          private readonly ProductEditView View;
          public ProductModel Model { get; set; }
          public ProductEditViewModel(Product myproduct)
          {
              View = new ProductEditView { DataContext = this };
              if(myproduct!= null) Model  = myproduct;
  
          }
           private bool IsInDialogMode;
              public bool? ShowDialog()
              {
                  if (IsInDialogMode) return null;
                  IsInDialogMode = true;
                  return View.ShowDialog();
              }
      }
  </code></pre>
  
  <p>and write to my editCommant in  ProductlistViewModel:</p>
  
  <pre><code>  private RelayCommand UpdateProductmdInstance;
     public RelayCommand UpdateProductCommand
          {
              get
              {
                  if (UpdateProductmdInstance!= null) return UpdateProductmdInstance;
                  UpdateProductmdInstance= new RelayCommand(a =&gt; OpenProductDetail(SelectedProduct), p =&gt; SelectedProduct!= null);
                  return UpdateProductmdInstance;
              }
          }
  
          private void OpenProductDetail(Product product)
          {
              var ProductEditViewModel= new ProductEditViewModel(product);
              var result = personDetailViewModel.ShowDialog();
         ...
          }
  </code></pre>
  
  <p>I was wondering my sample is wrong?
  Can i have an instance from a view in its viewmodel?
  If my Sample is wrong how can i do this solution(send an object to other window and after edit get it)?</p>