Being a WPF dev for many years, I can see the pain in that web guys face. He was coping so hard he had to bring up the GPU usage. This kind of comedy only reveals itself to seasoned devs.
@parko19657 ай бұрын
Using the Template Studio template do you have an example of implementing a splashscreen in a WinUI3 app?
@davidpine76 ай бұрын
Let's ask @dotMorten
@parko19656 ай бұрын
@@davidpine7 I tried and got it sort of working but the result was after the Splashscreen finished an instance of my MainWindow along with an instance of a blank MainWindow appeared. I'm sure it's my code that's causing this. protected async override void OnLaunched(LaunchActivatedEventArgs args) { base.OnLaunched(args); var splashScreen = new SplashScreen(typeof(MainWindow)); splashScreen.Completed += async (s, e) => await App.GetService().ActivateAsync(args); //await App.GetService().ActivateAsync(args); App.GetService().Show(string.Format("AppNotificationSamplePayload".GetLocalized(), AppContext.BaseDirectory)); var logger = Host.Services.GetRequiredService(); logger.LogInfo("App Launched"); }
@dotMorten6 ай бұрын
Sorry for the late reply. Looks like everytime I've replied here with links and I come back later, my response here disappears, so trying again without links. Go to the concept doc of WinUIEx and click the splash screen documentation to see how this works. The gist of it is you replace the first created window with the splashscreen window, and then in its completion handler, create the window template studio would otherwise have created. I'm not super familiar with the template studio architecture otherwise, but I'm sure they can help with more specific in their repo too.
@jupiter16806 ай бұрын
How to custom window shape? like circle windows?
@dotMorten5 ай бұрын
You can't. All Windows are squares. So what you do is make the window 100% transparent, and render a circle inside the square, while overriding mouse events outside the circle to not react to mouse-input. It's a bit ugly and a lot of work.
@swiftypopty11027 ай бұрын
Can you guys also do for Android too?
@dhsoundzone6 ай бұрын
Great presentation Morten. Now we wanna hear Virtual Insanity... Good times old pal
@dotMorten6 ай бұрын
Hah! I love playing that tune!
@rappinron13845 ай бұрын
WinUIEx seems to only be available for .NET 6, Need 8.