How to set a full-screen splash screen image

十年热恋 提交于 2020-01-02 19:11:27

问题


First,I think I should explain what is the splash screen. For example, the image below is the windows store splash screen:

However,I think it is so samey. I wanna use a big image as the splash screen, such as:

But when I set the image as the splash screen, it does not fill up the screen:

I want it to be like this, the image full and centered on the screen. (I made this mock-up using Photoshop):

How can I achieve this?


回答1:


Windows startup screen is not fixed and it depends on the window size, which might be sometimes landscape sometimes portrait. So most of the window is expected to be filled with background color.

So what you ask for is impossible. You can only make the first page that is super simple (contains only that image) and ensure that it can appear as fast as possible and then run your setup code while that page is shown which would look like splash screen. Of course in that case you would set an empty image for the splash screen defined in Windows.




回答2:


You can't avoid display of the default app start screen. It consists of some image/icon centered on the one colour surface. What can be done is to display your own start screen, but only after the default one.

You can check it here (download the sample): https://code.msdn.microsoft.com/windowsapps/Splash-Screen-in-Universal-42c0b57a



来源:https://stackoverflow.com/questions/45996839/how-to-set-a-full-screen-splash-screen-image

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