|
@@ -1,7 +1,8 @@
|
|
|
<UserControl xmlns="https://github.com/avaloniaui"
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
- xmlns:vm="using:FoodLogProject.ViewModels"
|
|
|
+ xmlns:vm="using:FoodLogProject.ViewModels"
|
|
|
+ x:DataType="vm:MainWindowViewModel"
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
|
x:Class="FoodLogProject.Views.Page4">
|
|
@@ -35,18 +36,60 @@ Padding="40" >
|
|
|
<TextBlock FontSize="20" Foreground="DarkGreen" FontWeight="Bold" Margin="0,0,0,20" HorizontalAlignment="Center">
|
|
|
Меню
|
|
|
</TextBlock>
|
|
|
- <TextBlock FontSize="16" FontWeight="Bold" Margin="0,0,0,10">
|
|
|
- 1 День
|
|
|
- </TextBlock>
|
|
|
|
|
|
<TextBlock FontWeight="Bold" Margin="0,0,0,10">Завтрак</TextBlock>
|
|
|
- <TextBlock Name="Breakfast">место для завтрака</TextBlock>
|
|
|
+ <TextBlock Text="{Binding Recipesbreackfast.RecipeName}" FontSize="20" Foreground="DarkGreen"/>
|
|
|
+ <TextBlock FontWeight="Bold" Margin="0,0,0,10">Ингредиенты</TextBlock>
|
|
|
+ <ListBox ItemsSource="{Binding ListIngridientBreakfast}">
|
|
|
+ <ListBox.ItemTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <StackPanel >
|
|
|
+
|
|
|
+ <TextBlock Text="{Binding Ingredient.IngredientName}"/>
|
|
|
+ <TextBlock Text="{Binding Weight}"/>
|
|
|
+ </StackPanel>
|
|
|
+ </DataTemplate>
|
|
|
+ </ListBox.ItemTemplate>
|
|
|
+ </ListBox>
|
|
|
+
|
|
|
+ <TextBlock FontWeight="Bold" Margin="0,10,0,10">Рецепт</TextBlock>
|
|
|
+ <TextBox AcceptsReturn="True" BorderBrush="White" IsReadOnly="True" TextWrapping="Wrap" Text="{Binding Recipesbreackfast.RecipeDescription}"/>
|
|
|
|
|
|
<TextBlock FontWeight="Bold" Margin="0,10,0,10">Обед</TextBlock>
|
|
|
- <TextBlock Name="Lunch">место для обеда</TextBlock>
|
|
|
+ <TextBlock Text="{Binding Recipeslunch.RecipeName}" FontSize="20" Foreground="DarkGreen"/>
|
|
|
+ <TextBlock FontWeight="Bold" Margin="0,0,0,10">Ингредиенты</TextBlock>
|
|
|
+ <ListBox ItemsSource="{Binding ListIngridientLunch}">
|
|
|
+ <ListBox.ItemTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <StackPanel >
|
|
|
+
|
|
|
+ <TextBlock Text="{Binding Ingredient.IngredientName}"/>
|
|
|
+ <TextBlock Text="{Binding Weight}"/>
|
|
|
+ </StackPanel>
|
|
|
+ </DataTemplate>
|
|
|
+ </ListBox.ItemTemplate>
|
|
|
+ </ListBox>
|
|
|
+
|
|
|
+ <TextBlock FontWeight="Bold" Margin="0,10,0,10">Рецепт</TextBlock>
|
|
|
+ <TextBox AcceptsReturn="True" BorderBrush="White" IsReadOnly="True" TextWrapping="Wrap" Text="{Binding Recipeslunch.RecipeDescription}"/>
|
|
|
|
|
|
<TextBlock FontWeight="Bold" Margin="0,10,0,10">Ужин</TextBlock>
|
|
|
- <TextBlock Name="Dinner">место для ужин</TextBlock>
|
|
|
+ <TextBlock Text="{Binding Recipesdinner.RecipeName}" FontSize="20" Foreground="DarkGreen"/>
|
|
|
+ <TextBlock FontWeight="Bold" Margin="0,0,0,10">Ингредиенты</TextBlock>
|
|
|
+ <ListBox ItemsSource="{Binding ListIngridientDinner}">
|
|
|
+ <ListBox.ItemTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <StackPanel >
|
|
|
+
|
|
|
+ <TextBlock Text="{Binding Ingredient.IngredientName}"/>
|
|
|
+ <TextBlock Text="{Binding Weight}"/>
|
|
|
+ </StackPanel>
|
|
|
+ </DataTemplate>
|
|
|
+ </ListBox.ItemTemplate>
|
|
|
+ </ListBox>
|
|
|
+
|
|
|
+ <TextBlock FontWeight="Bold" Margin="0,10,0,10">Рецепт</TextBlock>
|
|
|
+ <TextBox AcceptsReturn="True" BorderBrush="White" IsReadOnly="True" TextWrapping="Wrap" Text="{Binding Recipesdinner.RecipeDescription}"/>
|
|
|
</StackPanel>
|
|
|
</StackPanel>
|
|
|
</Border>
|