Shell: how to wait for initial content from async method on app start. #28418
Unanswered
SergTomcat
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I don't think we have control over when create window gets called. Creating a dummy page isn't terrible, no different than creating a login page that gets skipped if you're already logged in. You're probably looking at two scenarios you need to handle here:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have dynamic content based on user settings and it is retrieved from SQLite DB asyncroniously. I need to set at least one ShellContent item inside shell on creation, and shell itself is created at CreateWindow method of Application.
Question is: how can I stall CreateWindow until I get all asyncronous info?
Here is some example (it's not a real code, it's just to get the idea of what is needed):
What is the possible solution or best practice? Because for now I have to insert "dummy page" in Shell constructor that mimic splash screen, while waiting for results. I would like it all happen behind initial loading splash screen.
Any help is appreciated. Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions