private void List_OnItemTapped(object sender, ItemTappedEventArgs e) { Page nextPage = null; MovieQuote quote = e.Item as MovieQuote; if (quote == null) { return; } if (LayoutType == 0) { nextPage = new FluidLayoutPage(quote); } else if (LayoutType == 1) { nextPage = new ExtendedLayoutPage(quote); } else if (LayoutType == 2) { nextPage = new ComplimentaryLayoutPage(quote); } list.SelectedItem = null; Navigation.PushAsync(nextPage); }
private void List_OnItemTapped(object sender, ItemTappedEventArgs e) { Page nextPage = null; MovieQuote quote = e.Item as MovieQuote; if (quote == null) return; if (LayoutType == 0) nextPage = new FluidLayoutPage(quote); else if (LayoutType == 1) nextPage = new ExtendedLayoutPage(quote); else if (LayoutType == 2) nextPage = new ComplimentaryLayoutPage(quote); list.SelectedItem = null; Navigation.PushAsync(nextPage); }