OrderNew.xaml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <Page x:Class="Sessioa.Pages.OrderNew"
  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:Sessioa.Pages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="Заказы"
  10. FontFamily="Comic Sans MS"
  11. FontSize="16">
  12. <Page.Resources>
  13. <BitmapImage x:Key="defaultImage" UriSource="/Resources/picture.png"/>
  14. </Page.Resources>
  15. <Grid>
  16. <Grid.RowDefinitions>
  17. <RowDefinition Height="0.1*"/>
  18. <RowDefinition/>
  19. </Grid.RowDefinitions>
  20. <Button Name="B_Back" Content="Назад" Style="{StaticResource ButtonAct}" Margin="10,0" MaxHeight="50" MinWidth="90" MaxWidth="150" Click="B_Back_Click" VerticalAlignment="Top" HorizontalAlignment="Left"/>
  21. <StackPanel VerticalAlignment="Center" Orientation="Horizontal" HorizontalAlignment="Right" Margin="15,0">
  22. <ComboBox Name="Sort" MaxHeight="60" Width="250" Margin="10,0" SelectionChanged="Sort_SelectionChanged"/>
  23. <ComboBox Name="Filt" MaxHeight="60" Width="250" SelectionChanged="Filt_SelectionChanged"/>
  24. </StackPanel>
  25. <ListBox x:Name="LB_OrderProduct" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Margin="200,0" Grid.Row="1">
  26. <ListBox.ItemTemplate>
  27. <DataTemplate>
  28. <Border BorderBrush="Black" BorderThickness="2" CornerRadius="5" Background="White" Uid="{Binding OrderID}" Loaded="Border_Loaded">
  29. <Grid MouseDown="Border_MouseDown">
  30. <Grid.ColumnDefinitions>
  31. <ColumnDefinition Width="0.3*"/>
  32. <ColumnDefinition Width="2*"/>
  33. </Grid.ColumnDefinitions>
  34. <StackPanel Margin="10">
  35. <TextBlock Text="{Binding OrderID, StringFormat=Заказ #{0}}" Style="{StaticResource TextBlockBold}"/>
  36. <TextBlock Name="UserOrder" Loaded="UserOrder_Loaded" Style="{StaticResource TextBlock}" Uid="{Binding User.UserID}"/>
  37. </StackPanel>
  38. <StackPanel Grid.Column="1" HorizontalAlignment="Right" Margin="15,0">
  39. <TextBlock Text="{Binding OrderDate, StringFormat=Дата создания заказа: {0:d}}" Style="{StaticResource TextBlock}" Language="ru-RU"/>
  40. <TextBlock Text="{Binding OrderDeliveryDate, StringFormat=Дата выдачи: {0:d}}" Style="{StaticResource TextBlock}" Language="ru-RU" Loaded="TextBlock_Loaded" Uid="{Binding OrderID}"/>
  41. <TextBlock Name="TB_StatusOrder" Style="{StaticResource TextBlock}" Loaded="TB_StatusOrder_Loaded" Uid="{Binding OrderID}"/>
  42. </StackPanel>
  43. </Grid>
  44. </Border>
  45. </DataTemplate>
  46. </ListBox.ItemTemplate>
  47. </ListBox>
  48. </Grid>
  49. </Page>