12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <Page x:Class="Reks.Pages.Orders"
- 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:Reks.Pages"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800"
- Title="Orders">
- <Grid Background="White">
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="10*"/>
- </Grid.RowDefinitions>
- <StackPanel Height="30" HorizontalAlignment="Center" Orientation="Horizontal" Grid.Row="0">
- <Button 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="1200" Height="200" BorderThickness="1" BorderBrush="Black">
- <StackPanel>
- <TextBlock Text="{Binding StringFormat=Номер заказа: {0}, Path=OrderID}"/>
- <TextBlock Text="{Binding StringFormat=Дата оформления: {0}, Path=OrderCreateDate}"/>
- <TextBlock Text="{Binding StringFormat=Дата доставки: {0}, Path=OrderDeliveryDate}"/>
- <TextBlock Text="Состав заказа: " FontWeight="Bold"/>
- <TextBlock Uid="{Binding OrderID}" Loaded="WhatInOrder"/>
- <TextBlock Uid="{Binding OrderID}" Loaded="TotalPromo"/>
- <TextBlock Uid="{Binding OrderID}" Loaded="OrderCost"/>
- </StackPanel>
- </Border>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </Grid>
- </Page>
|