Sneaker.xaml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <Page x:Class="SneakersSkakunov.Sneaker"
  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:SneakersSkakunov"
  7. mc:Ignorable="d"
  8. d:DesignHeight="720" d:DesignWidth="1080"
  9. Title="Sneaker">
  10. <Grid Background="#f5f5f5">
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="*"></RowDefinition>
  13. <RowDefinition Height="100"></RowDefinition>
  14. <RowDefinition Height="60"></RowDefinition>
  15. </Grid.RowDefinitions>
  16. <StackPanel Grid.Row="1" VerticalAlignment="Center" Margin="10,0,0,0">
  17. <StackPanel Orientation="Horizontal">
  18. <StackPanel>
  19. <TextBlock>Введите цвет</TextBlock>
  20. <TextBox Height="25" Name="Clr" Width="300" TextChanged="TBSearch_TextChanged" ></TextBox>
  21. </StackPanel>
  22. <StackPanel Margin="10,0,0,0">
  23. <TextBlock>Выберите бренд</TextBlock>
  24. <ComboBox Height="25" Name="brnds" Width="300" SelectionChanged="CBFilterBreed_SelectionChanged" ></ComboBox>
  25. </StackPanel>
  26. </StackPanel>
  27. <StackPanel Margin="0,5,0,0" Orientation="Horizontal">
  28. <StackPanel>
  29. <TextBlock>Сортировка</TextBlock>
  30. <ComboBox Height="25" Name="RBNow" Width="300" SelectionChanged="SortChanged" ></ComboBox>
  31. </StackPanel>
  32. <RadioButton VerticalAlignment="Center" Margin="10,15,10,0" Name="RBUp" Checked="RBUp_Checked">Цена по возрастанию</RadioButton>
  33. <RadioButton VerticalAlignment="Center" Margin="10,15,0,0" Name="RBDown" Checked="RBUp_Checked">Цена по убыванию</RadioButton>
  34. </StackPanel>
  35. </StackPanel>
  36. <StackPanel Grid.Row="0">
  37. <ListView Name="SneakerList" Background="#f5f5f5" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
  38. <ListView.ItemsPanel>
  39. <ItemsPanelTemplate>
  40. <WrapPanel HorizontalAlignment="Center"></WrapPanel>
  41. </ItemsPanelTemplate>
  42. </ListView.ItemsPanel>
  43. <ListView.ItemTemplate>
  44. <DataTemplate>
  45. <Border Padding="5" CornerRadius="15" BorderThickness="2" BorderBrush="#292929" Background="{Binding ColorSneak}">
  46. <Grid Width="350" Height="350" >
  47. <StackPanel>
  48. <Image Width="200" Height="150" Source="NetFoto.png"></Image>
  49. <TextBlock Uid="{Binding Brand.id_Brand}" Loaded="brands"></TextBlock>
  50. <!--<TextBlock Uid="{Binding id_Sneakers}" Loaded="models"></TextBlock>-->
  51. <TextBlock Uid="{Binding id_Sneakers}" Loaded="Colors"></TextBlock>
  52. <TextBlock Uid="{Binding id_Sneakers}" Loaded="prices"></TextBlock>
  53. <!--<TextBlock Uid="{Binding id_Sneakers}" Loaded="Date"></TextBlock>-->
  54. <TextBlock Uid="{Binding id_Sneakers}" Loaded="Sizes"></TextBlock>
  55. <TextBlock Uid="{Binding Cheque.Date_of_formation, StringFormat={}dd.MM.yyyy}"></TextBlock>
  56. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  57. <Border BorderThickness="1" CornerRadius="4" BorderBrush="#292929" Background="White" Width="90" Height="20" Margin="0,5,0,0">
  58. <Button Background="#0000" BorderBrush="#0000" Foreground="#292929" Content="Редактировать" Uid="{Binding id_Sneakers}" Click="Button_Click"></Button>
  59. </Border>
  60. <Border BorderThickness="1" CornerRadius="4" BorderBrush="#292929" Background="White" Width="90" Height="20" Margin="10,5,0,0">
  61. <Button Background="#0000" BorderBrush="#0000" Foreground="#292929" Content="Удалить" Uid="{Binding id_Sneakers}" Click="Delete"></Button>
  62. </Border>
  63. </StackPanel>
  64. </StackPanel>
  65. </Grid>
  66. </Border>
  67. </DataTemplate>
  68. </ListView.ItemTemplate>
  69. </ListView>
  70. </StackPanel>
  71. <StackPanel Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Left" Orientation="Horizontal" Margin="10">
  72. <Border BorderThickness="1" CornerRadius="4" BorderBrush="#292929" Width="90" Height="20">
  73. <Button Background="#0000" BorderBrush="#0000" Foreground="#292929" Click="Revert" Content="Вернуться" Margin="0,-1,0,1"/>
  74. </Border>
  75. <Border BorderThickness="1" CornerRadius="4" BorderBrush="#292929" Width="90" Height="20" Margin="10,0,0,0">
  76. <Button Background="#0000" BorderBrush="#0000" Foreground="#292929" Click="Addendum" Content="Добавить" Margin="0,-1,0,1"/>
  77. </Border>
  78. </StackPanel>
  79. </Grid>
  80. </Page>