123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <Page x:Class="SneakersSkakunov.Sneaker"
- 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:SneakersSkakunov"
- mc:Ignorable="d"
- d:DesignHeight="720" d:DesignWidth="1080"
- Title="Sneaker">
- <Grid Background="#f5f5f5">
- <Grid.RowDefinitions>
- <RowDefinition Height="*"></RowDefinition>
- <RowDefinition Height="100"></RowDefinition>
- <RowDefinition Height="60"></RowDefinition>
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="1" VerticalAlignment="Center" Margin="10,0,0,0">
- <StackPanel Orientation="Horizontal">
- <StackPanel>
- <TextBlock>Введите цвет</TextBlock>
- <TextBox Height="25" Name="Clr" Width="300" TextChanged="TBSearch_TextChanged" ></TextBox>
- </StackPanel>
- <StackPanel Margin="10,0,0,0">
- <TextBlock>Выберите бренд</TextBlock>
- <ComboBox Height="25" Name="brnds" Width="300" SelectionChanged="CBFilterBreed_SelectionChanged" ></ComboBox>
- </StackPanel>
- </StackPanel>
- <StackPanel Margin="0,5,0,0" Orientation="Horizontal">
- <StackPanel>
- <TextBlock>Сортировка</TextBlock>
- <ComboBox Height="25" Name="RBNow" Width="300" SelectionChanged="SortChanged" ></ComboBox>
- </StackPanel>
- <RadioButton VerticalAlignment="Center" Margin="10,15,10,0" Name="RBUp" Checked="RBUp_Checked">Цена по возрастанию</RadioButton>
- <RadioButton VerticalAlignment="Center" Margin="10,15,0,0" Name="RBDown" Checked="RBUp_Checked">Цена по убыванию</RadioButton>
- </StackPanel>
- </StackPanel>
- <StackPanel Grid.Row="0">
- <ListView Name="SneakerList" Background="#f5f5f5" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
- <ListView.ItemsPanel>
- <ItemsPanelTemplate>
- <WrapPanel HorizontalAlignment="Center"></WrapPanel>
- </ItemsPanelTemplate>
- </ListView.ItemsPanel>
- <ListView.ItemTemplate>
- <DataTemplate>
- <Border Padding="5" CornerRadius="15" BorderThickness="2" BorderBrush="#292929" Background="{Binding ColorSneak}">
- <Grid Width="350" Height="350" >
- <StackPanel>
- <Image Width="200" Height="150" Source="NetFoto.png"></Image>
- <TextBlock Uid="{Binding Brand.id_Brand}" Loaded="brands"></TextBlock>
- <!--<TextBlock Uid="{Binding id_Sneakers}" Loaded="models"></TextBlock>-->
- <TextBlock Uid="{Binding id_Sneakers}" Loaded="Colors"></TextBlock>
- <TextBlock Uid="{Binding id_Sneakers}" Loaded="prices"></TextBlock>
- <!--<TextBlock Uid="{Binding id_Sneakers}" Loaded="Date"></TextBlock>-->
- <TextBlock Uid="{Binding id_Sneakers}" Loaded="Sizes"></TextBlock>
- <TextBlock Uid="{Binding Cheque.Date_of_formation, StringFormat={}dd.MM.yyyy}"></TextBlock>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
- <Border BorderThickness="1" CornerRadius="4" BorderBrush="#292929" Background="White" Width="90" Height="20" Margin="0,5,0,0">
- <Button Background="#0000" BorderBrush="#0000" Foreground="#292929" Content="Редактировать" Uid="{Binding id_Sneakers}" Click="Button_Click"></Button>
- </Border>
- <Border BorderThickness="1" CornerRadius="4" BorderBrush="#292929" Background="White" Width="90" Height="20" Margin="10,5,0,0">
- <Button Background="#0000" BorderBrush="#0000" Foreground="#292929" Content="Удалить" Uid="{Binding id_Sneakers}" Click="Delete"></Button>
- </Border>
- </StackPanel>
- </StackPanel>
- </Grid>
- </Border>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </StackPanel>
- <StackPanel Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Left" Orientation="Horizontal" Margin="10">
- <Border BorderThickness="1" CornerRadius="4" BorderBrush="#292929" Width="90" Height="20">
- <Button Background="#0000" BorderBrush="#0000" Foreground="#292929" Click="Revert" Content="Вернуться" Margin="0,-1,0,1"/>
- </Border>
- <Border BorderThickness="1" CornerRadius="4" BorderBrush="#292929" Width="90" Height="20" Margin="10,0,0,0">
- <Button Background="#0000" BorderBrush="#0000" Foreground="#292929" Click="Addendum" Content="Добавить" Margin="0,-1,0,1"/>
- </Border>
- </StackPanel>
- </Grid>
- </Page>
|