#1,103 – Configuring a Splash Screen

A splash screen is a simple image that appears while your application is loading.  It typically goes away just prior to the appearance of the main application window.

To add a splash screen to your WPF application, you start by adding an image to your project.

1103-001

1103-002

1103-003

 

Once added to the project, select the image file in Solution Explorer.

1103-004

Set the Build Action for the file to SplashScreen.

1103-005

Build and run the application.  As the application starts, the splash screen image will automatically be shown.  It will disappear as soon as the main window of the application appears.

1103-006

 

Advertisement

About Sean
Software developer in the Twin Cities area, passionate about software development and sailing.

3 Responses to #1,103 – Configuring a Splash Screen

  1. Pingback: Dew Drop – June 27, 2014 (#1805) | Morning Dew

  2. Joerg says:

    Does this really show while the application is loading in the background or just delay the launch of the application?

    • Sean says:

      It does display while the application is loading. It would make sense to use the splash screen if normal loading took a little bit of time and was longer than the time it takes to display the splash screen. The splash screen is designed to be very lightweight and comes up quickly. So I think that it would always be quicker than bringing up the main WPF window itself.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: