✅ Creating An Accurate Loading Screen Avalonia
I'm starting my application off with a loading screen that shows on launch. How can I make this loading screen accurate like what you see on other applications. Loading resources, applying styles, etc.
11 Replies
in Avalonia, you probably can't
also, the truth is that loading screens like that can often be fake
it's relatively common to make loading screens or progress bars that aren't backed up by any real meaning, they're just there to make the user feel like progress is being made
for Avalonia, you'd have to hook into their systems for loading things
which is really done mostly by the framework
so, you could look at .NET's Assembly Loading system, and see if there's places you could hook into the load process
but then you'd still have trouble recognizing what your "completion" state is, to derive progress from that
this might be useful
Collect detailed assembly loading information - .NET Core - .NET
Description of how to collect assembly loading information in .NET Core
if it's going to be a lot of trouble to do something like that especially if the framework already handles most of it and the completion state is likely to not exist, then I'll just make a different type of one. Currently, I have it setup to check for an update for the application, and if one exists then display two additional buttons
if you can pre-build an accurate profile of all the assemblies that get loaded by your application, and bake that in, you could maybe go off of that
the other concern is how much of the loading takes place before Avalonia even has a chance to DISPLAY anything
yea see all of that is just a bit too much trouble imo. I'll just make my own version of one
if you really wanted to do it properly, you'd probably need to code up a little splash window on startup that doesn't even USE Avalonia
realistically, yeah, it's probably doable to make something reasonable, but is it worth the effort?
honestly, after reading all of that you just explained, no lol
also this, if you haven't read it
GitHub
Splash Screen · Issue #2674 · AvaloniaUI/Avalonia
I would like my application to open with a splash screen of a .ico or image file for a few seconds, then open to my MainWindow. Is there a way to do this yet, perhaps similar to how WPF handles spl...
sorry to disappoint
nah you're fine 🙂 thank you for your help!