public RecipeDetailView(RecipeEntryModel recipeEntry) { InitializeComponent(); var pageservice = new PageService(); BindingContext = new RecipeDetailViewModel(recipeEntry, pageservice); }
public RecipeAboutTabView(RecipeEntryModel recipeEntry) { InitializeComponent(); recipeTitle.Text = recipeEntry.RecipeName; recipeImage.Source = recipeEntry.PhotoFileSource; recipeExplanation.Text = recipeEntry.Explanation; }
public RecipeEntryView(RecipeEntryModel recipeEntryModel) { InitializeComponent(); var dbService = new DBService(DependencyService.Get <IDbConnection>()); var pageservice = new PageService(); BindingContext = new RecipeEntryViewModel(recipeEntryModel ?? new RecipeEntryModel(), dbService, pageservice); }