public App() { // The root page of your application //MainPage = new MyContentPage(); //MainPage = new MyContentPageCls(); //MainPage = new MyTabbedPage(); //MainPage = new MyCarouselPage(); MainPage = new MyMasterDetailPage(); }
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; } } }