/// <summary>
 /// Hides the application window hosting the given content
 /// </summary>
 /// <param name="windowContents">Element previously displayed in a window using ShowWindow</param>
 public void HideWindow(FrameworkElement windowContents)
 {
     checkApplicationContext();
     _appHost.HideWindow(windowContents);
 }