12345678910111213141516171819202122232425262728293031323334353637 |
- <Window x:Class="Cafe.AddWindows.AddOrderWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:Cafe.AddWindows"
- mc:Ignorable="d"
- Title="Новый заказ" Height="900" Width="1600" WindowStartupLocation="CenterScreen" ResizeMode="CanMinimize">
- <Grid>
- <ListBox Name="DishesList" VerticalAlignment="Top" HorizontalAlignment="Center" Width="1500" Height="450"
- ScrollViewer.VerticalScrollBarVisibility="Disabled" ScrollViewer.HorizontalScrollBarVisibility="Auto" SelectionChanged="DishesListSelectionChanged" Margin="0,100,0,0" d:ItemsSource="{d:SampleData ItemCount=5}">
- <ListBox.ItemsPanel>
- <ItemsPanelTemplate>
- <VirtualizingStackPanel IsItemsHost="True" Orientation="Horizontal"/>
- </ItemsPanelTemplate>
- </ListBox.ItemsPanel>
- <ListBox.ItemTemplate>
- <DataTemplate>
- <StackPanel Name="DishStack">
- <Image Source="{Binding Picture}" Width="250" Height="250"/>
- <Label Content="{Binding Name}" Width="250" Foreground="White" FontSize="25" Height="50"/>
- <Label Content="{Binding Price}" Width="250" Foreground="White" FontSize="25" Height="50"/>
- <Button Content="Убрать" Width="250" FontSize="25" Height="50" Click="DeliteDishClick"/>
- </StackPanel>
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
- <Button x:Name="BackButton" Content="Назад" HorizontalAlignment="Left" Margin="20,17,0,0" VerticalAlignment="Top" Height="39" Width="140" FontSize="25" Click="BackButtonClick"/>
- <Label Content="Сумма:" Foreground="White" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="36" Height="60" Margin="1225,685,0,0"/>
- <Label Name="SumOfOrder" Content="0" Foreground="White" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="36" Height="60" Margin="1352,685,0,0" Width="200"/>
- <Button Name="AddDish" Content="Добавить блюдо" HorizontalAlignment="Left" VerticalAlignment="Top" Height="60" Width="300" FontSize="36" Click="AddDishClick" Margin="53,687,0,0"/>
- <Button Name="ToOrder" Content="Сделать заказ" HorizontalAlignment="Center" VerticalAlignment="Top" Height="60" Width="250" FontSize="36" Click="ToOrderClick" Margin="0,792,0,0"/>
- <ComboBox x:Name="DishesBox" Height="60" Width="450" HorizontalAlignment="Left" Margin="400,687,0,0" VerticalAlignment="Top" Foreground="Black" FontSize="36"/>
- <ComboBox x:Name="TablesBox" Height="60" Width="450" HorizontalAlignment="Left" Margin="400,589,0,0" VerticalAlignment="Top" Foreground="Black" FontSize="36"/>
- <Label Content="Столик:" Foreground="White" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="36" Height="60" Margin="266,589,0,0"/>
- </Grid>
- </Window>
|