Windows Phone SplashScreen初始屏幕示例

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/

你可能感兴趣的:(windows phone)