[RegistryPreview]Fix showing in the background on start (#28452)

* [RegistryPreview] Fix showing in the background on start

* Use existing window handle
This commit is contained in:
Stefan Markovic
2023-09-12 15:50:02 +02:00
committed by GitHub
parent 67a2dc0d6f
commit 43549eba77
5 changed files with 46 additions and 45 deletions

View File

@@ -97,6 +97,8 @@ namespace RegistryPreview
UpdateToolBarAndUI(false);
UpdateWindowTitle(resourceLoader.GetString("FileNotFound"));
}
ManagedCommon.WindowHelpers.BringToForeground(windowHandle);
}
private void MainWindow_Activated(object sender, WindowActivatedEventArgs args)