|
|
|
@ -5,19 +5,19 @@
|
|
|
|
|
xmlns:local="clr-namespace:Views"
|
|
|
|
|
Title="ViewRecette"
|
|
|
|
|
x:Name="nrecipe">
|
|
|
|
|
<VerticalStackLayout>
|
|
|
|
|
<VerticalStackLayout BindingContext="{Binding Recipe}">
|
|
|
|
|
<local:MiniHeader
|
|
|
|
|
TitleMini="Cookies aux Pépites de chocolat"
|
|
|
|
|
TitleMini="{Binding Title}"
|
|
|
|
|
NeedReturn="True"
|
|
|
|
|
HeightRequest="100"/>
|
|
|
|
|
<Image
|
|
|
|
|
Source="entete.jpg"
|
|
|
|
|
Source="{Binding Image}"
|
|
|
|
|
HeightRequest="150"
|
|
|
|
|
Aspect="AspectFill"/>
|
|
|
|
|
<Grid ColumnDefinitions="200,*">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
@ -25,49 +25,39 @@
|
|
|
|
|
Text="Ingrédients :"
|
|
|
|
|
FontSize="Subtitle"
|
|
|
|
|
FontAttributes="Bold"/>
|
|
|
|
|
<Label Margin="10,60,20,0"
|
|
|
|
|
Grid.RowSpan="4">
|
|
|
|
|
<Label.Text>
|
|
|
|
|
|
|
|
|
|
- 6 pommes
|
|
|
|
|
- 6 poires
|
|
|
|
|
- une banane
|
|
|
|
|
- 3 fraises
|
|
|
|
|
- 400g de farine
|
|
|
|
|
- 200g de beurre
|
|
|
|
|
- 150g de pépite de chocolat
|
|
|
|
|
</Label.Text>
|
|
|
|
|
</Label>
|
|
|
|
|
<Label Margin="10,20,0,0"
|
|
|
|
|
<ListView Margin="10,60,20,0"
|
|
|
|
|
Grid.RowSpan="4"
|
|
|
|
|
ItemsSource="{Binding Ingredients}">
|
|
|
|
|
<ListView.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<ViewCell>
|
|
|
|
|
<Grid ColumnDefinitions="auto,auto, auto"
|
|
|
|
|
RowDefinitions="auto">
|
|
|
|
|
<Label Text="{Binding QuantityI}" Grid.Column="0" Grid.Row="0"/>
|
|
|
|
|
<Label Text="{Binding Name}" Grid.Column=" 1" Grid.Row="0"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
</ViewCell>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</ListView.ItemTemplate>
|
|
|
|
|
</ListView>
|
|
|
|
|
<Label Margin="10,0,20,20"
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
Grid.Row="0"
|
|
|
|
|
Text="Préparation :"
|
|
|
|
|
FontSize="Subtitle"
|
|
|
|
|
FontAttributes="Bold"/>
|
|
|
|
|
<Label Grid.Column="1"
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
Text="Etape 1"
|
|
|
|
|
FontAttributes="Italic"/>
|
|
|
|
|
<Label Grid.Column="1"
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
Margin="10,20,0,0"
|
|
|
|
|
Text=" ° Laissez ramollir le beurre à température ambiante. Dans un saladier, malaxez-le avec le sucre"/>
|
|
|
|
|
<Label Grid.Column="1"
|
|
|
|
|
Grid.Row="2"
|
|
|
|
|
FontAttributes="Italic"
|
|
|
|
|
Text="Etape 2"/>
|
|
|
|
|
<Label Grid.Column="1"
|
|
|
|
|
Grid.Row="2"
|
|
|
|
|
Margin="10,20,0,0"
|
|
|
|
|
Text=" ° Ajoutez l'oeuf et éventuellement le sucre vanillé. "/>
|
|
|
|
|
<Label Grid.Column="1"
|
|
|
|
|
Grid.Row="3"
|
|
|
|
|
FontAttributes="Italic"
|
|
|
|
|
Text="Etape 3"/>
|
|
|
|
|
<Label Grid.Column="1"
|
|
|
|
|
Grid.Row="3"
|
|
|
|
|
Margin="10,20,0,0"
|
|
|
|
|
Text=" ° Ajoutez l'oeuf et éventuellement le sucre vanillé. "/>
|
|
|
|
|
<ListView Margin="10,30,0,0"
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
|
|
|
|
|
ItemsSource="{Binding PreparationSteps}">
|
|
|
|
|
<ListView.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<TextCell Text="{Binding Order, StringFormat='Etape {0}'}"
|
|
|
|
|
Detail="{Binding Description}"/>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</ListView.ItemTemplate>
|
|
|
|
|
</ListView>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -81,30 +71,37 @@
|
|
|
|
|
Padding="20,10,80,20"
|
|
|
|
|
Margin="50,100,50,0"
|
|
|
|
|
MinimumHeightRequest="200">
|
|
|
|
|
<Grid ColumnDefinitions="600,*">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Label Grid.ColumnSpan="2"
|
|
|
|
|
Grid.Row="0"
|
|
|
|
|
Text=" Meilleure revue : "
|
|
|
|
|
FontAttributes="Bold"/>
|
|
|
|
|
<Label Background="#FFCB9A"
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
Grid.RowSpan="2"
|
|
|
|
|
Padding="10,10,10,10"
|
|
|
|
|
Text="Recette facile, non prise de tête et agréable à réaliser avec ses grands parents. Le resultat est délicieux, ma famille a adorée."
|
|
|
|
|
Margin="0,0,15,0"/>
|
|
|
|
|
<ListView ItemsSource="{Binding Reviews}">
|
|
|
|
|
<ListView.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<Grid ColumnDefinitions="600,*" >
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Label Grid.ColumnSpan="2"
|
|
|
|
|
Grid.Row="0"
|
|
|
|
|
Text=" Meilleure revue : "
|
|
|
|
|
FontAttributes="Bold"/>
|
|
|
|
|
<Label
|
|
|
|
|
Background="#FFCB9A"
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
Grid.RowSpan="2"
|
|
|
|
|
Padding="10,10,10,10"
|
|
|
|
|
Text="{Binding Content}"
|
|
|
|
|
Margin="0,0,15,0"/>
|
|
|
|
|
<Button Grid.Column="1"
|
|
|
|
|
Grid.Row="2"
|
|
|
|
|
Background="#FFCB9A"
|
|
|
|
|
Text="Voir plus"
|
|
|
|
|
TextColor="Black"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</ListView.ItemTemplate>
|
|
|
|
|
</ListView>
|
|
|
|
|
|
|
|
|
|
<Button Grid.Column="1"
|
|
|
|
|
Grid.Row="2"
|
|
|
|
|
Background="#FFCB9A"
|
|
|
|
|
Text="Voir plus"
|
|
|
|
|
TextColor="Black"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
</VerticalStackLayout>
|
|
|
|
|