private void NavigateToMasterDetail() { SidemenuService.SetUpSideMenu(); var homePage = new NavigationPage(new MainPage()); var masterDetailPage = new MasterDetailPage { Detail = homePage, IsGestureEnabled = false }; masterDetailPage.Master = new MenuPage(); masterDetailPage.Master.IconImageSource = "hammenu"; App.Current.MainPage = masterDetailPage; }
private void NavigateToMasterDetail(bool bikerIsWorking) { SidemenuService.SetUpSideMenu(); var startPage = bikerIsWorking ? "order-stage" : "home"; var homePage = new NavigationPage(new MainPage(startPage)); var masterDetailPage = new MasterDetailPage { Detail = homePage, IsGestureEnabled = false }; masterDetailPage.Master = new MenuPage(); masterDetailPage.Master.IconImageSource = "hammenu"; App.Current.MainPage = masterDetailPage; }