Click here to Skip to main content
15,890,438 members
Articles / Splash
Tip/Trick

Windows App Splash Screen - Beginners Tutorial

Rate me:
Please Sign up or sign in to vote.
2.70/5 (6 votes)
16 Oct 2012CPOL3 min read 22.8K   3   7
How to set the splash screen image and how to change the background color.

Introduction

Continuing to my previous article title, here we will see about splash screens, how to set the splash screen image and how to change the background color. 

Splash Screen

Every Windows Store app must have splash screen. Splash screen consists of image and a background color. Whenever the user will launch application, splash screen will be the first to come up. Now you might be thinking, what is the purpose of splash screen???

We all know that, whenever any application is launched, lot many things happened at backend before our application is fully launched. So, splash screen provides a way to hide all those background details from the user. This splash screen is launched, when application is initialized and as soon as our application is ready for interaction, this splash screen goes off. Isn't it a nice thing ?

Now question is can we customize this splash screen ? Then my answer will be Yes. You can customize image as well as background color. Enough of theory, let's try it out ...

Demo and sample code

Open the project in Visual Studio. Open the package.appxmanifest file from the solution explorer. Opening the manifest file by double clicking will automatically open the file in Visual Studio Manifest Designer as

 Image 1 

Open the ApplicationUI tab and scroll till the end, until you find Splash Screen section. If you have not modified anything in Splash Screen section, you will be able to see "images\splashscreen.png" path in the Splash Screen field and if you want to see the markup code for it then open your manifest file in the notepad or any text editor as:  

C++
<applications>
    <application id="App" entrypoint="HelloWorldSample.App" executable="$targetnametoken$.exe">
      <visualelements description="HelloWorldSample" backgroundcolor="#464646" foregroundtext="light" smalllogo="Assets\SmallLogo.png" logo="Assets\Logo.png" displayname="HelloWorldSample">
        <defaulttile showname="allLogos">
        <splashscreen image="images\splashscreen.png">
      </splashscreen>
    </defaulttile>
  </visualelements></application></applications>
If you want to change this default image, then click on browse the browse button to select the image of your choice. 

Note: Please make sure that the image you are selecting must be of 620 x 300 pixels. 

Now coming to Background Color, it is also pretty simple. In the Splash Screen sectioour n, you will find the field with title Background Color. You can enter the color of your choice in this field. Setting of background color is optional for splash screen.

Things to remember while customizing splash screen:

BE careful while customizing the splash screen: As it is the first screen or let's say welcome screen of our app, it should have a good combination of image and background color. It should be very appealing. Here one thing to keep in mind is, when your application is launched, only the background color is adjusted as per the screen size, not the image size. Image size will always be intact.

USE extended splash screen

If you feel that your application needs to perform lots of background tasks before the user interation can happen or before the landing page appears, then extend your splash screen in a way, that it gives user a pleasing experience, instead of annoying.  Alternatively, you can provide additional information on the splash screen, in order to keep user busy by showing more interesting information about your application.

NEVER display advertisements

The purpose of splash screen is to let user know that app is loading, using the same for advertising and other useless stuff can confuse user also.

NEVER display about page

The main purpose of splash screen is to give user a smooth loading experience. So, your splash screen should never show information about version, date , etc.

USE proper image

It is always recommended to use the image, which gives idea about your application

USE progressbar

If you feel that your application is going to take more than a few seconds, then it is always good to show user a progress bar about applciaiton loading process

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Comments and Discussions

 
GeneralNot an article Pin
Tim Corey15-Oct-12 4:45
professionalTim Corey15-Oct-12 4:45 
GeneralRe: Not an article Pin
Shweta Lodha15-Oct-12 7:19
Shweta Lodha15-Oct-12 7:19 
GeneralRe: Not an article Pin
Tim Corey15-Oct-12 7:32
professionalTim Corey15-Oct-12 7:32 
Length is a key indicator but it isn't the real reason why a post gets categorized as a tip vs. an article. The root issue behind the categorization is what the post communicates. If the topic is a very focused on one specific item or area, it is generally seen as a tip. For instance, you focus on one item. You explain it and give some great information but it all focuses on just that one small piece. That is a tip. That is why the post is as short as it is. You were able to cover the entire topic well and still have a relatively small word count. On the other hand, if you were to tackle the topic of "advanced ASP.NET MVC" for instance, you would end up with an article even if you didn't go into as much depth since the topic is so large. The length of these two posts would indicate their category, but that just shows the underlying truth.

The line between article and tip is subjective, but that is why we have a multi-moderator system. If one moderator things it is a tip and the rest think it is an article, it will get approved. Moderators aren't perfect but the need for five to get on the same page tends to limit the possibility of bad judgements.
GeneralRe: Not an article Pin
OriginalGriff15-Oct-12 8:02
mveOriginalGriff15-Oct-12 8:02 
GeneralRe: Not an article Pin
Steve Maier15-Oct-12 10:41
professionalSteve Maier15-Oct-12 10:41 
AnswerRe: Not an article Pin
Clifford Nelson15-Oct-12 8:15
Clifford Nelson15-Oct-12 8:15 
GeneralRe: Not an article Pin
Shweta Lodha15-Oct-12 18:17
Shweta Lodha15-Oct-12 18:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.