Removing splash screen from UWP app in Fall Creators Update (FCU)

这一生的挚爱 提交于 2019-11-28 02:10:43

问题


I read in some article regarding new Fall Creators Update SDK that it is now possible to develop apps without splash screens for faster loading times.

My question is, how do we eliminate a splash screen when starting up an app? Where is the documentation for the changes to make to the app?


回答1:


Open your Package.appxmanifest file from your main project and add a:Optional="true" to

<uap:SplashScreen Image="Assets\SplashScreen.png" a:Optional="true" xmlns:a="http://schemas.microsoft.com/appx/manifest/uap/windows10/5" />

However, you will still need to provide a splash image because a:Optional

Specifies whether an app should be launched without a splash screen. If true, the splash screen will not be shown if the app can launch fast enough. If there is a delay in the app launch time, the splash screen will be shown. If false, the splash screen will always be shown.

Please refer to this link for more information.




回答2:


Simply comment out the splash screen in the manifest file.

file: package.appmanifest

<!-- <uap:SplashScreen Image="Assets\SplashScreen.png" /> -->


来源:https://stackoverflow.com/questions/47201701/removing-splash-screen-from-uwp-app-in-fall-creators-update-fcu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!