Sneaker.xaml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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="60"></RowDefinition>
  14. </Grid.RowDefinitions>
  15. <StackPanel Grid.Row="0">
  16. <ListView Name="SneakerList" Background="#dbdbdb" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
  17. <ListView.ItemsPanel>
  18. <ItemsPanelTemplate>
  19. <WrapPanel HorizontalAlignment="Center"></WrapPanel>
  20. </ItemsPanelTemplate>
  21. </ListView.ItemsPanel>
  22. <ListView.ItemTemplate>
  23. <DataTemplate>
  24. <Border Padding="5" CornerRadius="15" BorderThickness="2" BorderBrush="#292929" Background="{Binding ColorSneak}">
  25. <Grid Width="350" Height="350" >
  26. <StackPanel>
  27. <Image Width="200" Height="150" Source="NetFoto.png"></Image>
  28. <TextBlock Uid="{Binding Brand.id_Brand}" Loaded="brands"></TextBlock>
  29. <TextBlock Uid="{Binding id_Sneakers}" Loaded="models"></TextBlock>
  30. <TextBlock Uid="{Binding id_Sneakers}" Loaded="Colors"></TextBlock>
  31. <TextBlock Uid="{Binding id_Sneakers}" Loaded="prices"></TextBlock>
  32. <TextBlock Uid="{Binding id_Sneakers}" Loaded="Date"></TextBlock>
  33. <TextBlock Uid="{Binding Cheque.Date_of_formation, StringFormat={}dd.MM.yyyy}"></TextBlock>
  34. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  35. <Border BorderThickness="1" CornerRadius="4" BorderBrush="#292929" Background="White" Width="90" Height="20" Margin="0,5,0,0">
  36. <Button Background="#0000" BorderBrush="#0000" Foreground="#292929" Content="Редактировать" Uid="{Binding id_Sneakers}"></Button>
  37. </Border>
  38. <Border BorderThickness="1" CornerRadius="4" BorderBrush="#292929" Background="White" Width="90" Height="20" Margin="10,5,0,0">
  39. <Button Background="#0000" BorderBrush="#0000" Foreground="#292929" Content="Удалить" Uid="{Binding id_Sneakers}" Click="Delete"></Button>
  40. </Border>
  41. </StackPanel>
  42. </StackPanel>
  43. </Grid>
  44. </Border>
  45. </DataTemplate>
  46. </ListView.ItemTemplate>
  47. </ListView>
  48. </StackPanel>
  49. <StackPanel Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Left" Orientation="Horizontal" Margin="10">
  50. <Border BorderThickness="1" CornerRadius="4" BorderBrush="#292929" Width="90" Height="20">
  51. <Button Background="#0000" BorderBrush="#0000" Foreground="#292929" Click="Revert" Content="Вернуться" Margin="0,-1,0,1"/>
  52. </Border>
  53. <Border BorderThickness="1" CornerRadius="4" BorderBrush="#292929" Width="90" Height="20" Margin="10,0,0,0">
  54. <Button Background="#0000" BorderBrush="#0000" Foreground="#292929" Click="Addendum" Content="Добавить" Margin="0,-1,0,1"/>
  55. </Border>
  56. </StackPanel>
  57. </Grid>
  58. </Page>