Example #1
0
        /// <summary>
        /// Wraps the ContentPage within a NavigationPage
        /// </summary>
        /// <returns>The navigation page.</returns>
        public NavigationPage WithinNavigationPage()
        {
            var nav = new ThemedNavigationPage(this);

            ApplyTheme(nav);
            return(nav);
        }
Example #2
0
        /// <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;
        }
Example #3
0
		/// <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();
		}