コード例 #1
0
        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);
            };
        }
コード例 #2
0
        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);
            };
        }