Splash screen sample

This sample shows how to imitate the splash screen that Windows displays for your app by positioning a similar image correctly when Windows dismisses the splash screen that it displays. This sample uses the SplashScreen class in the Windows.Applicati...

163,491 times
Add to favorites
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question

  • i cannot download from these links. Please Help..
    1 Posts | Last post March 28, 2014
    • i tried from two different networks, from two different countries. yet not being able to download these samples.
  • Nice Sample
    3 Posts | Last post October 23, 2013
    • Works like a charm, thanks people...
    • I agree with the statement above. :)
    • Good job, the messages this is clean. Tks
  • Sample vs Sample Code
    1 Posts | Last post March 25, 2013
    • As a UI Designer I've come to this page to see an actual sample. I'm just finding sample code. It would be nice to SEE the sample - even if it's just a static screen capture.
  • How to remove splash screen when data loaded?
    1 Posts | Last post March 22, 2013
    • Hello,
      I'd like to use the Extended splash Screen, while loading Website data in an iframe. How can I remove the splash Screen, when data is loaded? 
  • Splash screen main usage
    3 Posts | Last post March 15, 2013
    • suggestion need
    • All apps are required to have splash screens. In order to customize your splash screen, you can use the package manifest editor to choose a custom image and/or background color. 
      This sample provides guidance for displaying an extended splash screen in your app. The extended splash screen is a component that is displayed by your app in order to continue the splash screen experience in a seamless manner. An appropriate usage of this could be to display an extended splash screen while network requests are made (imagine a Weather app getting the current forecast, for example). This way, your users experience a smooth and continuous loading flow on launch rather than staring at an empty first view while content is retrieved. Because the extended splash screen is controlled by your app, it allows you to make the transition to your landing page whenever you are ready to present UI to the user.
      Hope that helps! If you have any further questions, please don't hesitate to ask.
      Justin Cooperman
    • Justin,
      The "appropriate usage" you list is exactly what I want to do, but can't see in the sample where to tell main screen to start loading and where to tell the splash screen to navigate to the main screen when it's ready.
  • Where to add line ?
    2 Posts | Last post March 15, 2013
    • Where to add a line to immediately go in main page for it to load its data ?
      I don't really understand how to implement it in an existing project where the main page loads intensive data so I can use this extended splash screen in order to show a ProgressRing.
      I modified the ExtendedSplash.xaml to show the ProgressRing and I did remove the button LEARN MORE and it's event now I need the app to go immediately in the MainPage in order to load the data but I don't know where to add this line
    • Did you get an answer to this?  I have the same issue.  I want to insert a splash screen that displays while my main screen is loading (using web service calls), but don't see where to start the main page loading and then switch to that page when it's ready.
      Several places say you can do this, but the sample doesn't display this functionality (or I missed it.)
  • screenshot
    1 Posts | Last post January 18, 2013
    • I would suggets that you guys add screenshot to your codes showing  your code results or outputs and important sections 
  • Message dialog
    1 Posts | Last post November 24, 2012
    • HI,
      How can I fire a message dialog within the extended splash screen? I know how to use a message dialog, but I'm not able to show it within the splash screen. I'm trying to emulate a login screen in my app. Thank you
  • Not working
    2 Posts | Last post November 20, 2012
    • I added Frame.Navigate(typeof(MainPage), this);
      inside the Dismissed Event Handler without success.  It's still waiting for me to press the button and in the button click event its the same line so I don't understand why I can't go directly to MainPage in order to load the data and show the app
    • You need to invoke a your CoreDispatcher. For example 
      #region Members Fields
              private CoreDispatcher m_oCoreDispatcher;
      #region Constructors
      public ExtendedSplashScreen (SplashScreen p_oSplashScreen, bool p_bDimissed)
                  this.m_oCoreDispatcher = Window.Current.Dispatcher;
                  this.m_bDimissed = true;
      #region Methods
      internal void splashScreenDismissed(SplashScreen sender, object args)
                  this.m_bDimissed = true;
                  //We have to synchronize with the main thread
                  this.m_oCoreDispatcher.RunAsync(CoreDispatcherPriority.Normal, new DispatchedHandler(dispatch));
              private void dispatch()
                  var rootFrame = new Frame();
                  // Place the frame in the current Window and ensure that it is active
                  Window.Current.Content = rootFrame;
  • The application called an interface that was marshalled for a different thread.
    1 Posts | Last post November 09, 2012
    • I've added ExtendedSplash to my own application and in ExtendedSplash dismissed handler I've put my own code as it states so;
              // Include code to be executed when the system has transitioned from the splash screen to the extended splash screen (application's first view).
              void DismissedEventHandler(SplashScreen sender, object e)
                  dismissed = true;
                  // Navigate away from the app's extended splash screen after completing setup operations here...
                  // This sample navigates away from the extended splash screen when the "Learn More" button is clicked.
                  // Navigate to mainpage    
                  // Place the frame in the current Window 
                  Window.Current.Content = rootFrame;
      But I'm getting a wrong thread error;
      The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD))
      Here's also my app.xaml code;
              /// <summary>
              /// Invoked when the application is launched normally by the end user.  Other entry points
              /// will be used when the application is launched to open a specific file, to display
              /// search results, and so forth.
              /// </summary>
              /// <param name="args">Details about the launch request and process.</param>
              protected override async 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;
      Any ideas?
1 - 10 of 20 Items