UI スレッドをブロックしているようです。次の方法で試してください。
public partial class App
{
#region Methods
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
var splashScreenService = ServiceLocator.Default.ResolveType<ISplashScreenService>();
splashScreenService.Enqueue(new ActionTask("Task1", tracker => Thread.Sleep(2000)));
splashScreenService.Enqueue(new ActionTask("Task2", tracker => Thread.Sleep(2000)));
splashScreenService.Enqueue(new ActionTask("Task3", tracker => Thread.Sleep(2000)));
splashScreenService.CommitAsync();
}
#endregion
}
またはカスタム スプラッシュ スクリーン用
public partial class App
{
#region Methods
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
var splashScreenService = ServiceLocator.Default.ResolveType<ISplashScreenService>();
splashScreenService.Enqueue(new ActionTask("Task1", tracker => Thread.Sleep(2000)));
splashScreenService.Enqueue(new ActionTask("Task2", tracker => Thread.Sleep(2000)));
splashScreenService.Enqueue(new ActionTask("Task3", tracker => Thread.Sleep(2000)));
splashScreenService.CommitAsync<SplashScreenViewModel>();
}
#endregion
}