Giter Site home page Giter Site logo

Comments (3)

dotMorten avatar dotMorten commented on August 23, 2024 1

It's on my list to figure out as well, but just haven't gotten that far just yet. I'll follow up here once I get a chance to wrap my head around it. What I've done so far is to just use a SplashPage in the main maui window, and then redirect to the shell page once loading is done - not quite a splashscreen but got the job done and worked the same on all platforms.
An alternative is to just hide the main window (minimize + hide from taskbar) using the window extensions in WinUIEx, then re-enable once splash screen is done showing.

Also thank you so much for the coffee! Much appreciated!

from winuiex.

veikkoeeva avatar veikkoeeva commented on August 23, 2024

No problem! I also noticed I was imprecise, I was specifically going for WinUI. Well, I suppose I skip that for now and doodle around other things!

Also noticed microsoft/WindowsAppSDK#500 and dotnet/maui#3870 (comment) now. Ah, so, it's maybe the custom page until something official appears. I edited and added here for the benefit of others who may stumble here.

from winuiex.

breenbob avatar breenbob commented on August 23, 2024

I think if the SplashScreen window subclass didn't expect the Window type parameter for the subsequent Window to be launched, you could easily use the approach taken here for a Maui app WinUI splash screen...

This approach immediately shows a splash screen Window in the WinUI App.xaml.cs constructor, then when app fully launches it creates and activates the main window in OnLaunched, which in Maui terms happens automatically in OnLaunched anyway, so no need to even override that?

from winuiex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.