1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <Window x:Class="exam.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:exam"
- mc:Ignorable="d"
- Title="MainWindow" Height="450" Width="800">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="200"/>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"/>
- <RowDefinition/>
- <RowDefinition Height="50"/>
- </Grid.RowDefinitions>
- <Image
- Source="assets/logo.jpg"
- Grid.Row ="0"
- Grid.RowSpan="2"
- Stretch="Fill"/>
- <WrapPanel
- Grid.Column="1"
- MinHeight="50"
- Orientation="Horizontal">
- <Label
- Content="Категория:"/>
- <ComboBox
- Name="CategoryFilterComboBox"
- SelectionChanged="CategoryFilterComboBox_SelectionChanged"
- MinWidth="100"
- SelectedIndex="0"
- ItemsSource="{Binding ClothesCategoriesList}">
- <ComboBox.ItemTemplate>
- <DataTemplate>
- <Label
- Content="{Binding Title}"/>
- </DataTemplate>
- </ComboBox.ItemTemplate>
- </ComboBox>
- </WrapPanel>
- <DataGrid
- Grid.Column="1"
- Grid.Row="1"
- CanUserAddRows="False"
- AutoGenerateColumns="False"
- ItemsSource="{Binding ClothesList}">
- <DataGrid.Columns>
- <DataGridTextColumn
- Header="Бренд"
- Binding="{Binding Brand}"/>
- <DataGridTextColumn
- Header="Название"
- Binding="{Binding Title}"/>
- <DataGridTextColumn
- Header="Категория"
- Binding="{Binding Category}"/>
- <DataGridTextColumn
- Header="Цена"
- Binding="{Binding Price}"/>
- <DataGridTextColumn
- Header="Оценка"
- Binding="{Binding Rating}"/>
- <DataGridTextColumn
- Header="Наличие"
- Binding="{Binding Existence}"/>
-
- </DataGrid.Columns>
- </DataGrid>
- <Button x:Name="ExitButton"
- Content="Выйти"
- Grid.Row="2"
- Click="ExitButton_Click"/>
- </Grid>
- </Window>
|