12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <Page x:Class="GGwp.Zakaz"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:GGwp"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800"
- Title="Zakaz">
- <Grid Background="LightGreen">
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="10*"/>
- </Grid.RowDefinitions>
- <StackPanel Height="30" HorizontalAlignment="Center" Orientation="Horizontal" Grid.Row="0">
- <Button BorderBrush="White" BorderThickness="2" Foreground="Green" Background="LightGreen" Content="Вернутся к товарам" Click="BackToProduct"/>
- <ComboBox SelectionChanged="SortOrFilter" Name="SortOrders" Margin="10,0,0,0" Width="150"/>
- <ComboBox SelectionChanged="SortOrFilter" Name="FilterOrders" Margin="10,0,0,0" Width="150"/>
- </StackPanel>
- <ListView Grid.Row="1" Name="OrderList" d:ItemsSource="{d:SampleData ItemCount=5}">
- <ListView.ItemsPanel>
- <ItemsPanelTemplate>
- <WrapPanel Orientation="Vertical" HorizontalAlignment="Center"/>
- </ItemsPanelTemplate>
- </ListView.ItemsPanel>
- <ListView.ItemTemplate>
- <DataTemplate>
- <Border Uid="{Binding OrderID}" Loaded="BgrLoad" Width="800" Height="200" BorderThickness="1" BorderBrush="Black">
- <StackPanel>
- <TextBlock Foreground="Green" Text="{Binding StringFormat=Номер заказа: {0}, Path=OrderID}"/>
- <TextBlock Foreground="Green" Text="{Binding StringFormat=Дата оформления: {0}, Path=OrderCreateDate}"/>
- <TextBlock Foreground="Green" Text="{Binding StringFormat=Дата доставки: {0}, Path=OrderDeliveryDate}"/>
- <TextBlock Foreground="Green" Text="Состав заказа: " FontWeight="Bold"/>
- <TextBlock Foreground="Green" Uid="{Binding OrderID}" Loaded="WhatInOrder"/>
- <TextBlock Foreground="Green" Uid="{Binding OrderID}" Loaded="TotalPromo"/>
- <TextBlock Foreground="Green" Uid="{Binding OrderID}" Loaded="OrderCost"/>
- </StackPanel>
- </Border>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </Grid>
- </Page>
|