I've added a splash screen to a project in the simplest way, that is, by changing the Build Action property to SplashScreen . Although with very similar visual effects, what actually happens when we compare these two solutions?
A
public MainWindow()
{
InitializeComponent();
Thread.Sleep(5000);
}
B
public MainWindow()
{
Thread.Sleep(5000);
InitializeComponent();
}