WPF showing dialog before main window
Here’s the full solution that worked for me: In App.xaml, I remove the StartupUri stuff, and add a Startup handler: <Application x:Class=”MyNamespace.App” xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml” Startup=”ApplicationStart”> </Application> In App.xaml.cs, I define the handler as follows: public partial class App { private void ApplicationStart(object sender, StartupEventArgs e) { //Disable shutdown when the dialog closes Current.ShutdownMode = ShutdownMode.OnExplicitShutdown; … Read more