WaiterWindow.xaml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <Window x:Class="TrainingBeforeExams.WaiterWindow"
  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:TrainingBeforeExams"
  7. mc:Ignorable="d"
  8. Title="WaiterWindow" Height="450" Width="600">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="50"></RowDefinition>
  12. <RowDefinition Height="*"></RowDefinition>
  13. <RowDefinition Height="30"></RowDefinition>
  14. </Grid.RowDefinitions>
  15. <Rectangle Fill="BlueViolet"></Rectangle>
  16. <Label x:Name="currentLogin" FontSize="30" Foreground="AliceBlue" HorizontalAlignment="Right" VerticalAlignment="Center"></Label>
  17. <Grid Grid.Row="1">
  18. <ListView x:Name="orderList" HorizontalContentAlignment="Stretch">
  19. <ListView.ItemTemplate>
  20. <DataTemplate>
  21. <Grid>
  22. <Grid.ColumnDefinitions>
  23. <ColumnDefinition></ColumnDefinition>
  24. <ColumnDefinition></ColumnDefinition>
  25. <ColumnDefinition></ColumnDefinition>
  26. <ColumnDefinition></ColumnDefinition>
  27. </Grid.ColumnDefinitions>
  28. <TextBlock Text="{Binding Place.NumberPlace}" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="20"></TextBlock>
  29. <TextBlock Grid.Column="1" Text="{Binding StatusOrder.Title}" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="20"></TextBlock>
  30. <TextBlock Grid.Column="2" Text="{Binding Preorder.Number}" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="20"></TextBlock>
  31. <Button Grid.Column="3" Click="Button_Click" Content="Инфо" Background="AliceBlue" Foreground="BlueViolet" Margin="5" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="20"></Button>
  32. </Grid>
  33. </DataTemplate>
  34. </ListView.ItemTemplate>
  35. </ListView>
  36. </Grid>
  37. <Rectangle Grid.Row="2" Fill="BlueViolet"></Rectangle>
  38. </Grid>
  39. </Window>