Exemplo n.º 1
0
        //// Tabling this for future use in an advanced search
        //public async void GetRandomRecipe(object sender, EventArgs e)
        //{
        //    var recipes = await App.SpoonManager.GetRandomRecipeAsync();
        //    foreach (Recipe item in recipes)
        //    {
        //        recipePageItems.Add(item);
        //    }
        //}

        void OnItemTapped(object sender, ItemTappedEventArgs e)
        {
            var recipe     = e.Item as RecipePreview;
            var recipePage = new RecipePage(recipe.id, _activeDate);

            Navigation.PushAsync(recipePage);
            recipeSearchList.SelectedItem = null;
        }
        public void OnItemTapped(object sender, ItemTappedEventArgs e)
        {
            var bookmark   = e.Item as Bookmark;
            var recipePage = new RecipePage(bookmark.RecipeId, _activeDate);

            Navigation.PushAsync(recipePage);
            // Deselect the tapped item
            bookmarkList.SelectedItem = null;
        }