Zakaz.xaml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <Page x:Class="GGwp.Zakaz"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:GGwp"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="Zakaz">
  10. <Grid Background="LightGreen">
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="*"/>
  13. <RowDefinition Height="10*"/>
  14. </Grid.RowDefinitions>
  15. <StackPanel Height="30" HorizontalAlignment="Center" Orientation="Horizontal" Grid.Row="0">
  16. <Button BorderBrush="White" BorderThickness="2" Foreground="Green" Background="LightGreen" Content="Вернутся к товарам" Click="BackToProduct"/>
  17. <ComboBox SelectionChanged="SortOrFilter" Name="SortOrders" Margin="10,0,0,0" Width="150"/>
  18. <ComboBox SelectionChanged="SortOrFilter" Name="FilterOrders" Margin="10,0,0,0" Width="150"/>
  19. </StackPanel>
  20. <ListView Grid.Row="1" Name="OrderList" d:ItemsSource="{d:SampleData ItemCount=5}">
  21. <ListView.ItemsPanel>
  22. <ItemsPanelTemplate>
  23. <WrapPanel Orientation="Vertical" HorizontalAlignment="Center"/>
  24. </ItemsPanelTemplate>
  25. </ListView.ItemsPanel>
  26. <ListView.ItemTemplate>
  27. <DataTemplate>
  28. <Border Uid="{Binding OrderID}" Loaded="BgrLoad" Width="800" Height="200" BorderThickness="1" BorderBrush="Black">
  29. <StackPanel>
  30. <TextBlock Foreground="Green" Text="{Binding StringFormat=Номер заказа: {0}, Path=OrderID}"/>
  31. <TextBlock Foreground="Green" Text="{Binding StringFormat=Дата оформления: {0}, Path=OrderCreateDate}"/>
  32. <TextBlock Foreground="Green" Text="{Binding StringFormat=Дата доставки: {0}, Path=OrderDeliveryDate}"/>
  33. <TextBlock Foreground="Green" Text="Состав заказа: " FontWeight="Bold"/>
  34. <TextBlock Foreground="Green" Uid="{Binding OrderID}" Loaded="WhatInOrder"/>
  35. <TextBlock Foreground="Green" Uid="{Binding OrderID}" Loaded="TotalPromo"/>
  36. <TextBlock Foreground="Green" Uid="{Binding OrderID}" Loaded="OrderCost"/>
  37. </StackPanel>
  38. </Border>
  39. </DataTemplate>
  40. </ListView.ItemTemplate>
  41. </ListView>
  42. </Grid>
  43. </Page>