private void MudarPagina(object sender, EventArgs args) { string page = ((Button)sender).BindingContext as string; switch (page) { case "Pagina1": Detail = new Navigation.Page1(); IsPresented = false; break; case "Pagina2": Detail = new Navigation.Page2(); IsPresented = false; break; case "Conteudo": Detail = new Pages.Master.Content(); IsPresented = false; break; default: break; } }
public void MudarPagina1(Object sender, EventArgs args) { Detail = new Navigation.Page1(); IsPresented = false; }