SplashScreen setup when using Microsofts Template that implements the use of an Activation Service #83
Replies: 3 comments 1 reply
-
I’m not super familiar with the template studio architecture. Perhaps @mikebattista would know this better? |
Beta Was this translation helpful? Give feedback.
-
Looks like you need to activate the splash screen immediately as in the sample. Your long-running task is the content of ActivateAsync, so rearrange the code so the SplashScreen knows to block on it. Instead of updating m_window in the callback, update App.MainWindow. |
Beta Was this translation helpful? Give feedback.
-
Is there any way to not have to provide the MainWindow to the SplashScreen and handle the activation of the main window and its content using the activation service? I can see that the Splashscreen class doesn't seem to let you do that yourself. Just curious as running it the way you suggested, at least in my example, seems to generate a corrupted memory exception.
|
Beta Was this translation helpful? Give feedback.
-
It's great to see that WinUIEx seems to be included now as part of the Microsofts Template builder for WinUI3 apps, congrats on that by the way.
I had a question however related to the example readme for your splash screen implementation in regards to the way that Microsofts template build activates the main window. For example:
In App.cs
Which calls activate async in the activation service class:
App.MainWindow
is:So I was just wondering how I should work in the Splashscreen when the activation pipeline is done this way.
Beta Was this translation helpful? Give feedback.
All reactions