Splash screen for Windows 8

When users launch an app, they are immediately welcome by the splash screen. Every Windows 8 app has a splash screen, which consists of a 620×300 image and solid background color. Windows presents the splash screen on your behalf in order to welcome users while your app is activated. The activated event is received by all apps on launch, and gives your app the ability to perform any initialization work needed to present its initial UI.

The splash screen URL has to be mentioned in application manifest file.

splashscreen

If you are interested in monitor when the splash screen has been dismissed, you can use the splash screen API. The API includes the SplashScreen.Dismissed event, which indicates when the transition from splash screen to app start page has occurred. This may be useful if you want to know when your skeleton landing page is in view.

As you will see in the following example, your app can begin executing operations to fill the landing page inside of the launched callback. To optionally learn when the splash screen is dismissed, use the activated event args to obtain the splash screen object. Using this object, register for the dismissed event to be notified of splash screen dismissal.

async protected override void OnLaunched(LaunchActivatedEventArgs args)
{
    // Begin executing setup operations.
    PerformSetupTasks();

    // Retrieve splash screen object.
    SplashScreen splashScreen = args.SplashScreen;

    // Register an event handler to be executed when the splash screen has been dismissed.
    splashScreen.Dismissed += new TypedEventHandler<SplashScreen, object>(eSplash.onSplashScreenDismissed);
    ...
}

internal void PerformSetupTasks()
{
    // Begin additional loading tasks here…
    ...
}

internal void onSplashScreenDismissed(Windows.ApplicationModel.Activation.SplashScreen sender, object e)
{
    // The splash screen has dismissed and the skeleton landing page is now in view.
    ...
}

			

Leave a comment

Up ↑