示例#1
0
 public App()
 {
     // The root page of your application
     //MainPage = new MyContentPage();
     //MainPage = new MyContentPageCls();
     //MainPage = new MyTabbedPage();
     //MainPage = new MyCarouselPage();
     MainPage = new MyMasterDetailPage();
 }
示例#2
0
        void SignInViewModel_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
        {
            var vm = sender as SignInViewModel;

            switch (e.PropertyName)
            {
            case "SignInRequired":
            {
                if (vm.SignInRequired)
                {
                    if (!(MainPage is SignInPage))
                    {
                        MainPage = new SignInPage(vm);
                    }
                }
                else
                {
                    MainPage = new MyMasterDetailPage();
                }
                break;
            }
            }
        }