How to: Create a Splash Screen for Windows Phone
March 22, 2012
For applications that take more than a couple of seconds to load, a splash screen can give the user immediate feedback that the application is launching. When an application is launched, the splash screen is immediately displayed and will remain displayed until the navigation to the first page is complete.
When you create a new Silverlight project, a Splashscreenimage.jpg file is added to the project. This image must be 480 x 800 pixels. You can replace the image with any image you choose, but it must remain the same size and must be named Splashscreenimage.jpg. The Build Action property must be set to Content.
For applications that take a long time to load, it is recommended that you have an animated splash screen to indicate progress while preparing your application to run.
We recommend that XNA Framework–based applications create their splash screen by not including a SplashScreenImage.jpg but instead:
-
Keep the size of the entry assembly small.
-
In the Initialize() method:
-
Call base.Initialize() to create the GraphicsDevice properly.
-
Load the texture. Size it to the target resolution and orientation of the game. Set the texture to auto resize to a power of 2. Use DXT Compressed format.
-
Create a SpriteBatch.
-
Render the texture.
-
Call GraphicsDevice.Present().
-
-
In the Update() method, incrementally load your content.
-
In the Draw() method, continue to draw the start texture and switch to a loading animation as soon as those assets are loaded.