/// <summary> /// Kicks off the main application flow - this is the typical route taken once a user is registered /// </summary> void StartAuthenticationFlow() { //Create our entry page and add it to a NavigationPage, then apply a randomly assigned color theme var page = new AthleteLeaguesPage(); var navPage = new ThemedNavigationPage(page); page.ApplyTheme(navPage); MainPage = navPage; }
async void MoveToMainPage() { Settings.Instance.RegistrationComplete = true; await Settings.Instance.Save(); var page = new AthleteLeaguesPage(App.CurrentAthlete.Id); await Task.Delay(200); await Navigation.PushAsync(page); while (Navigation.NavigationStack.Count > 0) { Navigation.RemovePage(Navigation.NavigationStack[0]); //WelcomeStartPage } }
async void MoveToMainPage() { Settings.Instance.RegistrationComplete = true; await Settings.Instance.Save(); var page = new AthleteLeaguesPage(App.CurrentAthlete.Id); page.OnUserAuthenticated(); await Task.Delay(1000); await Navigation.PushAsync(page); Navigation.RemovePage(Navigation.NavigationStack[0]); //WelcomeStartPage Navigation.RemovePage(Navigation.NavigationStack[0]); //SetAliasPage Navigation.RemovePage(Navigation.NavigationStack[0]); //EnablePushPage }
/// <summary> /// Kicks off the main application flow - this is the typical route taken once a user is registered /// </summary> void StartAuthenticationFlow() { //Create our entry page and add it to a NavigationPage, then apply a randomly assigned color theme var page = new AthleteLeaguesPage(App.CurrentAthlete?.Id); var navPage = new ThemedNavigationPage(page); page.ApplyTheme(navPage); MainPage = navPage; page.EnsureUserAuthenticated(); }