|
|
|
@ -8,8 +8,7 @@
|
|
|
|
|
x:Name="homepage">
|
|
|
|
|
|
|
|
|
|
<local:ContainerBase x:Name="container_base"
|
|
|
|
|
NeedReturn="False"
|
|
|
|
|
IsConnected="True">
|
|
|
|
|
NeedReturn="False">
|
|
|
|
|
|
|
|
|
|
<!-- Flyout -->
|
|
|
|
|
<local:ContainerBase.MyFlyoutContent>
|
|
|
|
@ -20,7 +19,7 @@
|
|
|
|
|
Margin="20, 10, 15, 0"/>
|
|
|
|
|
<SearchBar
|
|
|
|
|
Placeholder="Mots-clés (ex.: rapide, fromage)"
|
|
|
|
|
FontAttributes="Italic" TextColor="Black"
|
|
|
|
|
TextColor="Black"
|
|
|
|
|
BackgroundColor="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Gray300}}"
|
|
|
|
|
Margin="15, 10, 15, 40"
|
|
|
|
|
SearchButtonPressed="SearchBar_SearchButtonPressed"/>
|
|
|
|
@ -52,10 +51,11 @@
|
|
|
|
|
<!-- Master -->
|
|
|
|
|
<local:ContainerBase.MyContent>
|
|
|
|
|
<ScrollView>
|
|
|
|
|
<StackLayout BindingContext="{Binding RecipesDisplayed}" MinimumWidthRequest="400">
|
|
|
|
|
<StackLayout BindingContext="{Binding ., Source={x:Reference homepage}}"
|
|
|
|
|
MinimumWidthRequest="400">
|
|
|
|
|
<!--Modification du prof apportée sur le stacklayout pour empecher l'affichage d'une seule case recipe-->
|
|
|
|
|
<Label
|
|
|
|
|
Text="{Binding Description}"
|
|
|
|
|
Text="{Binding RecipesDisplayed.Description}"
|
|
|
|
|
TextColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource Gray100}}"
|
|
|
|
|
FontSize="24"
|
|
|
|
|
Padding="15"/>
|
|
|
|
@ -67,7 +67,7 @@
|
|
|
|
|
AlignItems="Center"
|
|
|
|
|
AlignContent="SpaceEvenly"
|
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
|
BindableLayout.ItemsSource="{Binding}">
|
|
|
|
|
BindableLayout.ItemsSource="{Binding RecipesDisplayed}">
|
|
|
|
|
|
|
|
|
|
<BindableLayout.ItemTemplate>
|
|
|
|
|
<DataTemplate x:DataType="model:Recipe">
|
|
|
|
|