public void Deactivate()
 {
     this.viewModel.Dispose();
     this.view = null;
 }
 private void CreateView()
 {
     view = new WasapiCaptureDemoView();
     this.viewModel = new WasapiCaptureViewModel();
     view.DataContext = viewModel;
 }