<Page x:Class="MyApp.UserPages.UserOrders"
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:MyApp.UserPages"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800"
Title="UserOrders">
<Grid Background="White">
<Grid.RowDefinitions>
<RowDefinition Height="15"/>
<RowDefinition Height="35"/>
<RowDefinition Height="50"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" Width="800" Orientation="Horizontal" HorizontalAlignment="Right">
<StackPanel.LayoutTransform>
<RotateTransform Angle="180"/>
</StackPanel.LayoutTransform>
<StackPanel.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#940000" Offset="0"/>
<GradientStop Color="#FF4B4B " Offset="1"/>
</LinearGradientBrush>
</StackPanel.Background>
<Button Content="X" Foreground="#FFFFFF" BorderThickness="0" Height="15" Width="15" Click="Button_Click">
<Button.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#940000" Offset="0"/>
<GradientStop Color="#FF4B4B " Offset="1"/>
</LinearGradientBrush>
</Button.Background>
</Button>
<Button Content="-" Foreground="#FFFFFF" BorderThickness="0" Height="15" Width="15" Click="Button_Click_1">
<Button.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#940000" Offset="0"/>
<GradientStop Color="#FF4B4B " Offset="1"/>
</LinearGradientBrush>
</Button.Background>
</Button>
</StackPanel>
<Button Name="ItemsPageButton" Width="150" HorizontalAlignment="Left" Content="ТОВАРЫ" FontWeight="Bold" BorderBrush="Black" Grid.Row="1" Foreground="#FFFFFF" Background="#E5FF4B4B" Margin="275,0,0,0" Click="ProductsPageButton_Click"/>
<Button Name="OrdersPageButton" Width="150" Content="ЗАКАЗЫ" Foreground="#FFFFFF" FontWeight="Bold" BorderBrush="Black" Background="#E5FF4B4B" Margin="425,0,225,0" RenderTransformOrigin="0.367,1.472" Grid.Row="1" Click="OrdersPageButton_Click"/>
<TextBlock Text="Заказы" FontSize="30" FontWeight="Bold" Margin="645,10,-10,0" Grid.RowSpan="2">
<TextBlock.Foreground>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#FF000F" Offset="0"/>
<GradientStop Color="#FFFFFF" Offset="1"/>
</LinearGradientBrush>
</TextBlock.Foreground>
</TextBlock>
<TextBox Name="SearchTB" Grid.Row="2" Text="Поиск..." Padding="9" FontSize="13" FontWeight="Bold" Foreground="#6BFFFFFF" MinWidth="300" MinHeight="35" Height="35" HorizontalAlignment="Left" VerticalAlignment="Center" MouseEnter="SearchTB_MouseEnter" MouseLeave="SearchTB_MouseLeave" Background="#E5FF4B4B" Margin="16,0,0,0" Width="359"/>
<Button Name="StartSearchButton" Grid.Row="2" Content="🔍︎" Foreground="White" FontSize="23" BorderThickness="0" Background="Transparent" Height="38" Margin="335,5,425,7" Click="StartSearchButton_Click">
<Button.RenderTransform>
<TransformGroup>
<ScaleTransform ScaleX="1"/>
<SkewTransform/>
<RotateTransform/>
<TranslateTransform/>
</TransformGroup>
</Button.RenderTransform>
</Button>
<ComboBox Name="SortCB" IsReadOnly="True" Grid.Row="2" Foreground="#FFFFFF" FontSize="15" HorizontalAlignment="Left" VerticalAlignment="Center" Width="200" Margin="392,0,0,0" Background="Black" SelectionChanged="CB_SelectionChanged">
<ComboBox.ItemContainerStyle>
<Style TargetType="ComboBoxItem">
<Setter Property="Background" Value="#E5FF4B4B"/>
<Setter Property="BorderBrush" Value="#E5FF4B4B"/>
</Style>
</ComboBox.ItemContainerStyle>
</ComboBox>
<TextBlock Name="ForSortCB" Text="Сортировка" Grid.Row="2" HorizontalAlignment="Left" Foreground="#6BFFFFFF" FontSize="13" Margin="416,14,0,14" Width="76"/>
<DataGrid Name="Order_DG" Grid.Row="3" RowHeaderWidth="0" Background="#E5FF4B4B" RowBackground="Transparent" AutoGenerateColumns="False" IsReadOnly="True" GridLinesVisibility="All" HorizontalGridLinesBrush="Black" VerticalGridLinesBrush="Black">
<DataGrid.Columns>
<DataGridTextColumn Header="ID" Binding="{Binding Path=ID_order}" Width="20"/>
<DataGridTextColumn Header="Номер" Binding="{Binding Path=OrderNumber}" Width="60"/>
<DataGridTextColumn Header="Пользователь" Binding="{Binding Path=ID_user}" Width="150"/>
<DataGridTextColumn Header="Продукт" Binding="{Binding Path=ID_product}" Width="160"/>
<DataGridTextColumn Header="Кол-во позиций" Binding="{Binding Path=NumberOfPosition}" Width="130"/>
<DataGridTextColumn Header="Адрес" Binding="{Binding Path=Address}" Width="138"/>
<DataGridTextColumn Header="Цена" Binding="{Binding Path=TotalCost}" Width="136"/>
</DataGrid.Columns>
<DataGrid.Items>
</DataGrid.Items>
<DataGrid.ColumnHeaderStyle>
<Style TargetType="{x:Type DataGridColumnHeader}">
<Setter Property="Foreground" Value="#FFFFFF"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="BorderThickness" Value="0.5"/>
<Setter Property="BorderBrush" Value="Black"/>
</Style>
</DataGrid.ColumnHeaderStyle>
<DataGrid.CellStyle>
<Style TargetType="{x:Type DataGridCell}">
<Setter Property="Foreground" Value="#FFFFFF"/>
</Style>
</DataGrid.CellStyle>
</DataGrid>
</Grid>
</Page>