在 Fall Creators Update (FCU) 中从 UWP 应用程序中删除启动画面

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

我在一些关于新的 Fall Creators Update SDK 的文章中读到,现在可以开发 没有启动画面的应用程序 以加快加载速度次。

我的问题是,我们如何在启动应用程序时消除闪屏?应用程序更改的文档在哪里?

从您的主项目打开您的 Package.appxmanifest 文件并将 a:Optional="true" 添加到

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

但是,您仍然需要提供 splash 图片,因为 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.

请参阅此link了解更多信息。

只需在清单文件中注释掉启动画面即可。

文件:package.appmanifest

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