protected override void OnLaunched(LaunchActivatedEventArgs args)
{
    if (args.PreviousExecutionState != ApplicationExecutionState.Running)
    {
        bool loadState = (args.PreviousExecutionState == ApplicationExecutionState.Terminated);
        ExtendedSplash extendedSplash = new ExtendedSplash(args.SplashScreen, loadState);
        Window.Current.Content = extendedSplash;
    }

    Window.Current.Activate();
}

示例代码工程下载:

https://code.msdn.microsoft.com/windowsapps/Splash-screen-sample-89c1dc78/

相关文章:

  • 2022-01-03
  • 2021-07-11
  • 2021-12-28
  • 2021-10-24
  • 2022-02-22
  • 2021-08-08
  • 2021-08-27
猜你喜欢
  • 2022-12-23
  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-06
  • 2021-07-12
相关资源
相似解决方案