public void CreateDummyMenuPages( MenuContainerPage menuContainerPage, PageData dummyPage) { CreatePage( FixtureConstants.PageNames.DummyPageName, menuContainerPage.ContentLink, dummyPage, 10); }
public TabbedPage1() { InitializeComponent(); viewModel = new ItemsViewModel(); viewModel.LoadItemsCommand.Execute(null); menuContainerPage = new MenuContainerPage(); Services.Sistema.menuSuperior = new MenuSuperior(); this.menuContainerPage.SlideMenu = Services.Sistema.menuSuperior; Children.Add(Inicio = new Inicio(viewModel)); Children.Add(Favoritos = new Favoritos()); Children.Add(Atendimento = new Atendimento()); Children.Add(Entrar = new Entrar()); logo = logotipo; // logo.Source = new UriImageSource { CachingEnabled = false, Uri = new Uri("https://www.rodrigosimoesimoveis.com.br/uploads/www.rodrigosimoesimoveis.com.br/logotipo.png")}; ForceLayout(); this.CurrentPageChanged += async(object sender, EventArgs e) => { var i = this.Children.IndexOf(this.CurrentPage); TrocarDePagina(i); }; }