MainWindow.xaml 1.6 KB

123456789101112131415161718192021222324252627282930
  1. <Window x:Class="ProjectD.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:ProjectD"
  7. mc:Ignorable="d"
  8. Title="MainWindow" Height="450" Width="800"
  9. DataContext="{Binding RelativeSource={RelativeSource Self}}">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="33*"/>
  13. <RowDefinition Height="184*"/>
  14. </Grid.RowDefinitions>
  15. <Grid.ColumnDefinitions>
  16. <ColumnDefinition Width="63*"/>
  17. <ColumnDefinition Width="230*"/>
  18. <ColumnDefinition Width="507*"/>
  19. </Grid.ColumnDefinitions>
  20. <Button Content="Добавить ингредиент" HorizontalAlignment="Center" Margin="0,10,0,0" VerticalAlignment="Top" Width="228" Grid.Column="1" Height="41" Click="Button_Click_1"/>
  21. <StackPanel Orientation="Vertical" Name="IngredientList" Grid.Row="1" Grid.Column="1" Background="#FFF7E7E7">
  22. </StackPanel>
  23. <Button Grid.Column="2" Content="СОХРАНИТЬ" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Height="41" Width="120" Click="Button_Click"/>
  24. <TextBox Name="textBoxDishName" Grid.Column="2" HorizontalAlignment="Left" Margin="135,10,0,0" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Width="206" Height="41"/>
  25. </Grid>
  26. </Window>