The problem you are facing is that WPF manages the shutdown.
You can change the shutdown behavior through ...
Application.Current.ShutdownMode
... property. Change it to approriate:
Application.Current.ShutdownMode = System.Windows.ShutdownMode.OnLastWindowClose;
it will help.
Another way is to manually install MainWindow-property in the second window.
, splashscreen, .net 3.51. , , , .
, SplashScreen
, , . ShutdownMode -property.
, , Window, . , - ( WPF). (, ). , , . , MainWindow, .