public void Show() { // Show the screen if (window == null) { window = new LicenseWindow(); window.DataContext = license; // Attach to UI changes. license.LicenseChanged += new EventHandler(license_LicenseChanged); window.Closing += new CancelEventHandler(window_Closing); } window.Show(); window.Topmost = true; Gearset.WindowHelper.EnsureOnScreen(window); }