title: WPF-Binding is broken when View is closed and reopened
body: <p>I have a View (MainWindow.Xaml) which has a datacontext set to the MainWindowViewModel and I open it from the MainUIService like the code below.</p>
  <pre><code>public class MainUIService 
  {
      void IMainUIService.Show()
      {
          var viewModel = ViewModelSource.Create(() =&gt; new MainWindowViewModel());
          var mainUI = new MainWindow();
          mainUI.DataContext = viewModel;
          System.Windows.Application.Current.MainWindow = mainUI;
          mainUI.Show();
      }
  }
  </code></pre>
  <p>My requirement is to close and Reopen the View from the MainWindowViewModel.Now the problem here is none of the bindings are working.I was trying to set the text for a textblock inside the MainWindow.xaml after ReOpening it.</p>
  <pre><code>&lt;TextBlock x:Name=&quot;CurrentUserName&quot; Padding=&quot;2&quot; Background=&quot;{Binding 
     EnvironmentBackgroundColor}&quot; Foreground=&quot;White&quot; Text=&quot;{Binding UserName}&quot;/&gt;
  </code></pre>
  <p>I tried INotifyPropertyChanged,Mode=2way,IsAsyn=True and various solutions from internet,but nothing seems to work.</p>
  <p>Is there any way I can achieve this?Please help</p>