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;
 }
Esempio n. 3
0
        public RecipeEntryView(RecipeEntryModel recipeEntryModel)
        {
            InitializeComponent();
            var dbService   = new DBService(DependencyService.Get <IDbConnection>());
            var pageservice = new PageService();

            BindingContext = new RecipeEntryViewModel(recipeEntryModel ?? new RecipeEntryModel(), dbService, pageservice);
        }