protected override void OnStartup(object sender, StartupEventArgs e) { //Disable shutdown when the dialog closes Application.Current.ShutdownMode = ShutdownMode.OnExplicitShutdown; var dialog = new StartupStatusView(); dialog.Show(); // Do initialization work here... dialog.Close(); Application.Current.ShutdownMode = ShutdownMode.OnMainWindowClose; DisplayRootViewFor<ShellViewModel>(); }
protected override void OnStartup(object sender, StartupEventArgs e) { //Disable shutdown when the dialog closes Application.Current.ShutdownMode = ShutdownMode.OnExplicitShutdown; var dialog = new StartupStatusView(); dialog.Show(); // Do initialization work here... dialog.Close(); Application.Current.ShutdownMode = ShutdownMode.OnMainWindowClose; DisplayRootViewFor <ShellViewModel>(); }