Use C # To develop a metro-style application roadmap-Add a startup Screen

Source: Internet
Author: User

1. The default startup screen is actually the three o'clock clock image, and we need to reselect the Splash Image in the application UI module in the package. appxmanifest file.

The image size is 620*300, or 868x420 (1.4 times), 1116x540 (1.8 times), and supports PNG.

The startup screen is displayed when the application is re-activated.

2. If you want to delay the display time of the startup screen, you have to add a page to simulate the startup screen after the screen is displayed, but the page will flash when the two screens are connected.

Here is a story to teach you how to avoid this ugly flash, but I don't fully understand it. I hope my friends in the garden can translate it.

If you use fragment loading to load your imitation splash screen page, you may notice a flicker between when the Windows splash screen is dismissed and when your page is displayed. you see this flicker because fragment loading begins to load your imitation splash screen page asynchronously, beforeActivatedEvent Handler finishes executing. you can avoid this unsightly flicker entirely by avoiding the use of fragment loading in your imitation splash screen page. when your additional loading tasks are complete (as demonstrated by the splash screen sample) You can then navigate to your app's main page. alternatively, if you wish to continue the use of fragment loading in your imitation splash screen page, you can also prevent the flicker by getting a deferral and respondingActivatedEvents asynchronously. Get a deferral for an activated event by callingActivatedoperation.GetdeferralMethod.

 

Note: Do not use the startup screen to display advertisements, or use the startup screen as an about page.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.