MODIFICATION DU PROF SUITE AU BUG LINK-VIEW-HOME avec commentaires

pull/65/head
Roxane ROSSETTO 2 years ago
parent 07c235e56c
commit aedaa58769

@ -43,7 +43,7 @@
<!-- Master --> <!-- Master -->
<local:ContainerBase.MyContent> <local:ContainerBase.MyContent>
<ScrollView> <ScrollView>
<StackLayout BindingContext="{Binding AllRecipes}"> <StackLayout BindingContext="{Binding AllRecipes}" MinimumWidthRequest="400"><!--Modification du prof apportée sur le stacklayout pour empecher l'affichage d'une seule case recipe-->
<Label <Label
Text="{Binding Description}" Text="{Binding Description}"
TextColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource Gray100}}" TextColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource Gray100}}"

@ -1,20 +1,20 @@
using DataPersistence; using DataPersistence;
using Model; using Model;
namespace Views namespace Views
{ {
public partial class Home : ContentPage public partial class Home : ContentPage
{ {
public DataManager DataMgr { get; private set; } public DataManager DataMgr { get; private set; }
public RecipeCollection AllRecipes { get; private set; } public RecipeCollection AllRecipes { get; private set; }
public Home() public Home()
{ {
DataMgr = new DataManager(new Stubs()); DataMgr = new DataManager(new Stubs());
AllRecipes = new RecipeCollection("Toutes les recettes", DataMgr.Data[nameof(Recipe)].Cast<Recipe>().ToArray()); AllRecipes = new RecipeCollection("Toutes les recettes", DataMgr.Data[nameof(Recipe)].Cast<Recipe>().ToArray());
InitializeComponent(); InitializeComponent();
BindingContext = this; BindingContext = this;
} }
} }
} }

Loading…
Cancel
Save