Zakaz.xaml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <Page x:Class="Reks.Pages.Orders"
  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:Reks.Pages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="Orders">
  10. <Grid Background="White">
  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 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="1200" Height="200" BorderThickness="1" BorderBrush="Black">
  29. <StackPanel>
  30. <TextBlock Text="{Binding StringFormat=Номер заказа: {0}, Path=OrderID}"/>
  31. <TextBlock Text="{Binding StringFormat=Дата оформления: {0}, Path=OrderCreateDate}"/>
  32. <TextBlock Text="{Binding StringFormat=Дата доставки: {0}, Path=OrderDeliveryDate}"/>
  33. <TextBlock Text="Состав заказа: " FontWeight="Bold"/>
  34. <TextBlock Uid="{Binding OrderID}" Loaded="WhatInOrder"/>
  35. <TextBlock Uid="{Binding OrderID}" Loaded="TotalPromo"/>
  36. <TextBlock Uid="{Binding OrderID}" Loaded="OrderCost"/>
  37. </StackPanel>
  38. </Border>
  39. </DataTemplate>
  40. </ListView.ItemTemplate>
  41. </ListView>
  42. </Grid>
  43. </Page>