Example #1
0
 protected override void OnUnloaded()
 {
     base.OnUnloaded();
     DataContext = null;
     ViewModel   = null;
     if (Instance == this)
     {
         Instance = null;
     }
 }
Example #2
0
 protected override void OnLoaded()
 {
     base.OnLoaded();
     Window.IsCached = true;
     DataContext     = ViewModel = new ViewModelAutomatonSettings();
 }