public void Editar(object sender, SelectedItemChangedEventArgs e) { var mi = ((MenuItem)sender); var item = mi.CommandParameter as Negocio; NegocioEditPage pagEditar = new NegocioEditPage(new ItemDetailViewModel(item), this); var agregarNegocio = Navigation.PushModalAsync(new NavigationPage(pagEditar)); //await Navigation.PushModalAsync(new NegocioEditPage(new ItemDetailViewModel(item))); }
void Editar_Clicked(object sender, EventArgs e) { //var mi = ((MenuItem)sender); var item = sender as Negocio; NegocioEditPage pagEditar = new NegocioEditPage(new ItemDetailViewModel(viewModel.Negocio), n); var agregarNegocio = Navigation.PushModalAsync(new NavigationPage(pagEditar)); //await Navigation.PushAsync(new NegocioEditPage(new ItemDetailViewModel(viewModel.Negocio))); }