1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <Page x:Class="Write_erase.ManagerPages.ShowProductPage"
- 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:easy="clr-namespace:EasyCaptcha.Wpf;assembly=EasyCaptcha.Wpf"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:Write_erase.ManagerPages"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800"
- Title="ShowProductPage">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="3*"></ColumnDefinition>
- <ColumnDefinition></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <StackPanel Name="SPShow" Orientation="Vertical" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Top">
- <TextBlock Name="FIO" FontSize="15" TextWrapping="Wrap"/>
- <TextBlock Name="TBShowAll" FontSize="13" TextWrapping="Wrap"/>
- <TextBlock Name="TBShowPart" FontSize="13" TextWrapping="Wrap"/>
- </StackPanel>
- <StackPanel Name="SPSorting" Orientation="Vertical" Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,0,40">
- <TextBox Name="TBXSearch" Background="#498c51" FontSize="17" FontFamily="Comic Sans MS" Margin="0,0,0,10" TextChanged="TBXSearch_TextChanged"/>
- <RadioButton Name="RBUp" Style="{StaticResource RadioButtonStyle}" Click="RBUp_Click">По возрастанию</RadioButton>
- <RadioButton Name="RBDown" Style="{StaticResource RadioButtonStyle}" Click="RBDown_Click">По убыванию</RadioButton>
- <RadioButton Name="RBDefault" Style="{StaticResource RadioButtonStyle}" Click="RBDefault_Click">Отменить сортировку</RadioButton>
- <ComboBox Name="CBDiscount" FontFamily="Comic Sans MS" SelectionChanged="CBDiscount_SelectionChanged" Margin="0,10,0,0"></ComboBox>
- </StackPanel>
- <ListView Name="ProductPanelUser" Grid.Row="1">
- <ListView.ItemsPanel>
- <ItemsPanelTemplate>
- <WrapPanel Name="WPService" HorizontalAlignment="Center" Orientation="Vertical"></WrapPanel>
- </ItemsPanelTemplate>
- </ListView.ItemsPanel>
- <ListView.ItemTemplate>
- <DataTemplate>
- <Border Padding="5" CornerRadius="5" BorderThickness="1" BorderBrush="Black" Background="{Binding ColorBG}">
- <StackPanel Orientation="Horizontal">
- <Image Name="IMGPhoto" Source="{Binding Photo}" Margin="0,0,20,0" Width="120" Height="150"/>
- <StackPanel Orientation="Vertical">
- <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding ProductName}"/>
- <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding ProductDescription}"/>
- <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding Sup}"/>
- <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding Price}"/>
- </StackPanel>
- <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock Style="{StaticResource TextBlockStyle}" FontSize="15" Text="{Binding Discount}"/>
- </StackPanel>
- </StackPanel>
- </Border>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </Grid>
- </Page>
|