question

KeithCrotty-5608 avatar image
0 Votes"
KeithCrotty-5608 asked KeithCrotty-5608 commented

C# UWP : Splash screen time

In my old VB program, I had a form for the Splash screen. It would complete then fade out.

I re-wrote this in C# 2019 VS. When I run this from VS, its shows for 4-5 seconds (longer than I would like and no fade).

Now, we have created an Msix install package. When you run that, the splash goes away so fast you cant read anything.

I dont see any way to control it since it is being all done in the settings. Adding to that, shouldn't it react the same as when your testing in VS?

As a test, I added the following line at the end of the program initialization. It seemed to do nothing.
await Task.Delay(TimeSpan.FromSeconds(50000.1));

The only solution I can think of is to basically just build my own splash. That doesn't seem like the correct solution.










dotnet-csharpwindows-uwpvs-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JuanBetancourt-7857 avatar image
0 Votes"
JuanBetancourt-7857 answered

For that scenario Microsoft recommends to create a custom splash screen

see the article "Display a splash screen for more time" at
https://docs.microsoft.com/en-us/windows/uwp/launch-resume/create-a-customized-splash-screen

Remember to mark as answer if this resolved your issue

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

KeithCrotty-5608 avatar image
0 Votes"
KeithCrotty-5608 answered KeithCrotty-5608 commented

Thanks. I had miss this.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Juan - I am going to click your answer as accepted.

But, I am not sure that it is the solution. I was going through the proposed solution, and well, the answer just didn't seem to be working. I want to blame myself for that. It is probably some part of it that I am not properly understanding. In the end, I said to heck with it. Ill just pop up an image on the program and fade it out.

My real issue. To me there were things that the process in visual studio should have built in.
1: How long to keep it up before continuing on
2: Possibly a fade out check box. One may add something like show for 2 seconds, then fade for 1.
3: I'm not sure, but the progress bar/circle. I think that was intended to indicate the loading progress. This should be a check box as well.

0 Votes 0 ·