async void Add_Clicked(object sender, System.EventArgs e)
        {
            var editPage = new RecipeEditPage();

            var editNavPage = new NavigationPage(editPage)
            {
                BarBackgroundColor = Color.FromHex("#01487E"),
                BarTextColor       = Color.White
            };

            await Navigation.PushModalAsync(editNavPage);
        }
Beispiel #2
0
        async void Edit_Clicked(object sender, System.EventArgs e)
        {
            var editPage = new RecipeEditPage(TheRecipe);

            editPage.RecipeSaved += (page, recipe) =>
            {
                BindingContext = null;
                TheRecipe      = recipe;
                BindingContext = TheRecipe;
            };

            await Navigation.PushAsync(editPage);
        }