protected override async void OnStartup(StartupEventArgs e) { base.OnStartup(e); var splashScreen = new SplashScreenView(); splashScreen.Show(); await splashScreen.LoadDataAsync(); var mainView = new MainWindowView(); mainView.Show(); splashScreen.Close(); }