ShowProductPage.xaml 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <Page x:Class="Write_erase.ManagerPages.ShowProductPage"
  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:easy="clr-namespace:EasyCaptcha.Wpf;assembly=EasyCaptcha.Wpf"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:Write_erase.ManagerPages"
  8. mc:Ignorable="d"
  9. d:DesignHeight="450" d:DesignWidth="800"
  10. Title="ShowProductPage">
  11. <Grid>
  12. <Grid.ColumnDefinitions>
  13. <ColumnDefinition Width="3*"></ColumnDefinition>
  14. <ColumnDefinition></ColumnDefinition>
  15. </Grid.ColumnDefinitions>
  16. <StackPanel Name="SPShow" Orientation="Vertical" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Top">
  17. <TextBlock Name="FIO" FontSize="15" TextWrapping="Wrap"/>
  18. <TextBlock Name="TBShowAll" FontSize="13" TextWrapping="Wrap"/>
  19. <TextBlock Name="TBShowPart" FontSize="13" TextWrapping="Wrap"/>
  20. </StackPanel>
  21. <StackPanel Name="SPSorting" Orientation="Vertical" Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,0,40">
  22. <TextBox Name="TBXSearch" Background="#498c51" FontSize="17" FontFamily="Comic Sans MS" Margin="0,0,0,10" TextChanged="TBXSearch_TextChanged"/>
  23. <RadioButton Name="RBUp" Style="{StaticResource RadioButtonStyle}" Click="RBUp_Click">По возрастанию</RadioButton>
  24. <RadioButton Name="RBDown" Style="{StaticResource RadioButtonStyle}" Click="RBDown_Click">По убыванию</RadioButton>
  25. <RadioButton Name="RBDefault" Style="{StaticResource RadioButtonStyle}" Click="RBDefault_Click">Отменить сортировку</RadioButton>
  26. <ComboBox Name="CBDiscount" FontFamily="Comic Sans MS" SelectionChanged="CBDiscount_SelectionChanged" Margin="0,10,0,0"></ComboBox>
  27. </StackPanel>
  28. <ListView Name="ProductPanelUser" Grid.Row="1">
  29. <ListView.ItemsPanel>
  30. <ItemsPanelTemplate>
  31. <WrapPanel Name="WPService" HorizontalAlignment="Center" Orientation="Vertical"></WrapPanel>
  32. </ItemsPanelTemplate>
  33. </ListView.ItemsPanel>
  34. <ListView.ItemTemplate>
  35. <DataTemplate>
  36. <Border Padding="5" CornerRadius="5" BorderThickness="1" BorderBrush="Black" Background="{Binding ColorBG}">
  37. <StackPanel Orientation="Horizontal">
  38. <Image Name="IMGPhoto" Source="{Binding Photo}" Margin="0,0,20,0" Width="120" Height="150"/>
  39. <StackPanel Orientation="Vertical">
  40. <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding ProductName}"/>
  41. <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding ProductDescription}"/>
  42. <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding Sup}"/>
  43. <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding Price}"/>
  44. </StackPanel>
  45. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  46. <TextBlock Style="{StaticResource TextBlockStyle}" FontSize="15" Text="{Binding Discount}"/>
  47. </StackPanel>
  48. </StackPanel>
  49. </Border>
  50. </DataTemplate>
  51. </ListView.ItemTemplate>
  52. </ListView>
  53. </Grid>
  54. </Page>