public AddRecipe(IRecipeRepository recipeRepository) { this.recipeRepository = recipeRepository; InitializeComponent(); BindingContext = new RecipeViewModel(recipeRepository); }
public Page2(IRecipeRepository recipeRepository) { InitializeComponent(); this.recipeRepository = recipeRepository; BindingContext = new RecipeViewModel(recipeRepository); }