public MainPage () { this.sideMenuPage = new SideMenuPage (); this.navigationPage = new SearchableNavigationPage () { BarTextColor = NAVIGATION_BAR_TEXT_COLOR, BarBackgroundColor = NAVIGATION_BAR_BACKGROUND_COLOR }; Master = this.sideMenuPage; Detail = this.navigationPage; MasterBehavior = MasterBehavior.Popover; // Tablet and Phone have the same behavior }
public NavPage () { MasterBehavior = MasterBehavior.Popover; this.sideMenuPage = new SideMenuPage (); this.sideMenuPage.Icon = "menu.png"; Master = sideMenuPage; var homePage = new MainPage (); homePage.Title = Localization.GetString (LocalizationKeyAttribute.GetLocalizationKey (SideMenuItem.Home)); this.navPage = StyledNavigationPage (homePage); Detail = navPage; }