public InciBasePage() { InitializeComponent(); inciListView.ItemSelected += (object sender, SelectedItemChangedEventArgs e) => { var item = (Ingredient)e.SelectedItem; var itemPage = new ShowItemPage(); itemPage.BindingContext = item.ID; Navigation.PushAsync(itemPage); }; }
public ResultsPage(string ingredientes) { InitializeComponent(); getInci = ingredientes.ToUpper(); foundInciListView.ItemSelected += (object sender, SelectedItemChangedEventArgs e) => { var item = (Ingredient)e.SelectedItem; var itemPage = new ShowItemPage(); itemPage.BindingContext = item.ID; Navigation.PushAsync(itemPage); }; }