Ejemplo n.º 1
0
 protected virtual void TearDownCore()
 {
     if (realWindow != null)
     {
         realWindow.Close();
         realWindow.Content = null;
     }
     if (window != null)
     {
         window.Close();
         window.Content = null;
     }
     window     = null;
     realWindow = null;
     DispatcherHelper.DoEvents();
 }
 protected virtual void TearDownCore() {
     if(realWindow != null) {
         realWindow.SourceInitialized -= OnRealWindowSourceInitialized;
         realWindow.Close();
         realWindow.Content = null;
     }
     if (window != null) {
         window.Close();
         window.Content = null;
         window.MaxWidth = double.PositiveInfinity;
         window.MinWidth = 0.0;
         window.MaxHeight = double.PositiveInfinity;
         window.MinHeight = 0.0;
         window.Width = double.NaN;
         window.Height = double.NaN;
     }
     window = null;
     realWindow = null;
     DispatcherHelper.DoEvents();
 }
Ejemplo n.º 3
0
 protected virtual TestWindow CreateTestWindow()
 {
     return(TestWindow.GetContainer());
 }
Ejemplo n.º 4
0
 public virtual void EnqueueShowWindow(TestWindow window)
 {
     EnqueueLoadedEventAction(window, () => window.Show());
 }
Ejemplo n.º 5
0
 static void ClearThemeName(TestWindow window)
 {
 }