Ejemplo n.º 1
0
        protected void Unauthenticated()
        {
            // Create a default navigator
            var navigator = new DefaultNavigator
            {
                Authenticated = Authenticated,
                AuthApi       = AuthApi,
                SessionStore  = Session
            };

            // use the default navigator to create and bind the signin page
            PageModelPair pair = navigator.CreatePageModelPair(PageId.SignIn, AuthApi, Session);

            // Create a navigation page with the signin page
            var navPage = new NavigationPage(pair.Page);

            navigator.Page       = pair.Page;
            navigator.Navigation = navPage.Navigation;

            MainPage = navPage;

            MainPage.Title = "Cognito Forms";
        }