C# UWP : Splash screen time

Keith Crotty 81 Reputation points
2021-03-22T16:24:21.233+00:00

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.

Universal Windows Platform (UWP)
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,185 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,004 questions
0 comments No comments
{count} votes

Accepted answer
  1. Juan Betancourt 76 Reputation points
    2021-03-22T16:57:32.077+00:00

    For that scenario Microsoft recommends to create a custom splash screen

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

    Remember to mark as answer if this resolved your issue

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Keith Crotty 81 Reputation points
    2021-03-22T21:08:54.153+00:00

    Thanks. I had miss this.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.