OrderWindow.xaml 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <Window x:Class="Cafe.ElementsWindows.OrderWindow"
  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:Cafe.ElementsWindows"
  7. mc:Ignorable="d"
  8. Title="Заказ" Height="900" Width="1600" WindowStartupLocation="CenterScreen" ResizeMode="CanMinimize">
  9. <Grid>
  10. <Button Name="BackButton" Content="Назад" HorizontalAlignment="Left" Margin="20,17,0,0" VerticalAlignment="Top" Height="39" Width="140" FontSize="25" Click="BackButtonClick"/>
  11. <Label Content="Столик:" HorizontalAlignment="Left" Margin="140,86,0,0" VerticalAlignment="Top" Height="60" Width="180" Foreground="White" FontSize="36" HorizontalContentAlignment="Right"/>
  12. <Label Name="Table" HorizontalAlignment="Left" Margin="322,86,0,0" VerticalAlignment="Top" Height="60" Width="700" FontSize="36" Foreground="White"/>
  13. <Label Content="Официант:" HorizontalAlignment="Left" Margin="134,176,0,0" VerticalAlignment="Top" Height="60" Width="186" Foreground="White" HorizontalContentAlignment="Right" FontSize="36"/>
  14. <Label Name="Waiter" HorizontalAlignment="Left" Margin="322,176,0,0" VerticalAlignment="Top" Height="60" Width="700" FontSize="36" Foreground="White"/>
  15. <Label Content="Время:" HorizontalAlignment="Left" Margin="140,266,0,0" VerticalAlignment="Top" Height="60" Width="180" Foreground="White" FontSize="36" HorizontalContentAlignment="Right"/>
  16. <Label Name="Time" HorizontalAlignment="Left" Margin="322,266,0,0" VerticalAlignment="Top" Height="60" Width="700" FontSize="36" Foreground="White"/>
  17. <Label Content="Сумма:" HorizontalAlignment="Left" Margin="1077,86,0,0" VerticalAlignment="Top" Height="60" Width="180" Foreground="White" FontSize="36" HorizontalContentAlignment="Right"/>
  18. <Label Name="SumOfOrder" HorizontalAlignment="Left" Margin="1258,86,0,0" VerticalAlignment="Top" Height="60" Width="250" FontSize="36" Foreground="White"/>
  19. <Label Name="Ready" Content="Готовность:" HorizontalAlignment="Left" Margin="1052,176,0,0" VerticalAlignment="Top" Height="60" Width="205" Foreground="White" FontSize="36" HorizontalContentAlignment="Right"/>
  20. <Label x:Name="IsReady" HorizontalAlignment="Left" Margin="1258,176,0,0" VerticalAlignment="Top" Height="60" Width="250" FontSize="36" Foreground="White"/>
  21. <ListBox x:Name="DishesList" VerticalAlignment="Top" HorizontalAlignment="Center" Width="1500" Height="375"
  22. ScrollViewer.VerticalScrollBarVisibility="Disabled" ScrollViewer.HorizontalScrollBarVisibility="Auto" d:ItemsSource="{d:SampleData ItemCount=5}" Margin="0,355,0,0">
  23. <ListBox.ItemsPanel>
  24. <ItemsPanelTemplate>
  25. <VirtualizingStackPanel IsItemsHost="True" Orientation="Horizontal"/>
  26. </ItemsPanelTemplate>
  27. </ListBox.ItemsPanel>
  28. <ListBox.ItemTemplate>
  29. <DataTemplate>
  30. <StackPanel x:Name="DishStack">
  31. <Image Source="{Binding Dishes.Picture}" Width="250" Height="250"/>
  32. <Label Content="{Binding Dishes.Name}" Width="250" Foreground="White" FontSize="25" Height="50"/>
  33. <Label Content="{Binding Dishes.Price}" Width="250" Foreground="White" FontSize="25" Height="50"/>
  34. </StackPanel>
  35. </DataTemplate>
  36. </ListBox.ItemTemplate>
  37. </ListBox>
  38. <Button x:Name="Pay" Content="Оплачено" HorizontalAlignment="Center" Margin="0,792,0,0" VerticalAlignment="Top" Height="60" Width="180" FontSize="36" Click="PayButtonClick"/>
  39. <Button x:Name="ReadyButton" Content="Готово" HorizontalAlignment="Center" Margin="0,792,0,0" VerticalAlignment="Top" Height="60" Width="180" FontSize="36" Click="ReadyButtonClick"/>
  40. </Grid>
  41. </Window>