public async void OnClickedBack(object sender, EventArgs e)
        {
            var MyAppsFirstPage = new LoggedPage();

            Application.Current.MainPage = new NavigationPage(MyAppsFirstPage);
            await Application.Current.MainPage.Navigation.PopAsync(); //Remove the page currently on top.
        }
示例#2
0
        public App()
        {
            InitializeComponent();
            auth = DependencyService.Get <IAuth>();

            if (auth.IsSignIN())
            {
                MainPage = new LoggedPage();
            }
            else
            {
                MainPage = new MainPage();
            }
        }