Пример #1
0
 public MainPage(int launchId)
 {
     BackgroundColor = Theme.BackgroundColor;
     var menuPage = new MenuPage();
     menuPage.Menu.ItemTapped += (sender, arg) => NavigateTo((arg.Item as MenuItem)?.TargetType);
     NavigationPage.SetHasNavigationBar(this, false);
     Master = menuPage;
     var navigationPage = new NavigationPage(new LaunchPage(launchId))
     {
         BarBackgroundColor = Theme.FrameColor,
         BarTextColor = Theme.HeaderColor,
     };
     Detail = navigationPage;
     this.MasterBehavior = MasterBehavior.Popover;
 }
Пример #2
0
 public void ReloadAllPages()
 {
     BackgroundColor = Theme.BackgroundColor;
     var menuPage = new MenuPage();
     menuPage.Menu.ItemTapped += (sender, arg) => NavigateTo((arg.Item as MenuItem)?.TargetType);
     Master = menuPage;
     Detail = new NavigationPage(new OverviewPage())
     {
         BarBackgroundColor = Theme.NavBackgroundColor,
         BarTextColor = Theme.HeaderColor,
         BackgroundColor = Theme.BackgroundColor
     };
     Detail.Navigation.PushAsync(new SettingsPage());
 }