-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Changing AppShell at runtime #16067
Comments
What's actually stopping you from doing it? Do you get an error? I'm doing it in my app, and it seems to work. |
Hi @jrahma. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
I tried this but did not work:
CS0119: 'Signup' is a type, which is not valid in the given context |
What do sharp brackets after a value mean? I don't know this syntax. Did you mean |
It means I have different pages that I want them to be my main without having ti use NavigationPage so when the user is already signed in then the AppShell's MainPage is called MainPage or or HomePage and if not then the AppShell's MainPage is called Signin |
Don't you have a single |
Let me explain it. I have the same pages that I need to open like MyProfile and it should be a main page when the user did not complete the profile so when the use is not signed in then the main page is Signin and when the user signed in with incomplete profile then the main page is MyProfile and then they profile is completed then the main page is MainPage |
Yes, that sounds like you want to navigate. I think the article I linked will help you. Note that in all your cases the app's |
Hi @jrahma. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. |
Description
Please add an option to change the AppShell at runtime
Public API Changes
this is the AppShell:
and in App.xaml.cs:
MainPage = new Mobile.AppShell()<MainPage>;
Or:
MainPage = new Mobile.AppShell()<Signin>;
Or
MainPage = new Mobile.AppShell()<OnBoarding>;
Intended Use-Case
Many apps needs to change the MainPage for different scenarios.
The text was updated successfully, but these errors were encountered: