123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- <Window x:Class="ZachPreparing.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:ZachPreparing"
- mc:Ignorable="d"
- Title="Леарн" Height="450" Width="800"
- Icon="Pictures/school_logo.ico"
- FontFamily="Comic Sans MS">
- <Window.Resources>
- <Style TargetType="ListBox">
- <Setter Property="ItemTemplate">
- <Setter.Value>
- <DataTemplate DataType="local:Service">
- <Border Padding="10"
- CornerRadius="10" BorderThickness="1" BorderBrush="Gray"
- HorizontalAlignment="Stretch">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="auto"/>
- <ColumnDefinition Width="20"/>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <Image Height="60" Width="60"
- Grid.Column="0" Source="{Binding ServiceBitmapImage}"/>
- <Grid Grid.Column="2">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="auto"/>
- <ColumnDefinition Width="auto"/>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"/>
- <RowDefinition/>
- <RowDefinition Height="auto"/>
- </Grid.RowDefinitions>
- <TextBlock Text="{Binding Title}"
- Grid.ColumnSpan="3"/>
- <TextBlock Text="{Binding CostWithDuration}" Grid.Row="1"
- Grid.ColumnSpan="3"/>
- <Button Grid.Column="0" Grid.Row="2"
- Content="редактировать"
- Uid="{Binding ID}"
- Click="Button_Red"/>
- <Button Grid.Column="1" Grid.Row="2"
- Margin="5 0 0 0"
- Content="удалить"
- Uid="{Binding ID}"
- Click="Button_Del"/>
- </Grid>
- </Grid>
- </Border>
- </DataTemplate>
- </Setter.Value>
- </Setter>
-
-
- </Style>
-
- </Window.Resources>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="0.25*"/>
- <ColumnDefinition Width="10"/>
- <ColumnDefinition Width="0.75*"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="10*"/>
- <RowDefinition Height="90*"/>
- </Grid.RowDefinitions>
- <Image Source="Pictures/school_logo.png" Width="60"/>
- <ListBox x:Name="ListViewMain"
- Grid.Row="1" Grid.Column="2"
- BorderBrush="White" d:ItemsSource="{d:SampleData ItemCount=5}">
- <ListBox.ItemContainerStyle>
- <Style TargetType="ListBoxItem">
- <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
- </Style>
- </ListBox.ItemContainerStyle>
- </ListBox>
- <TextBox x:Name="SearchField"
- Grid.Row="0" Grid.Column="2"
- Height="35" Width="350"
- MaxHeight="60" MaxWidth="450"
- HorizontalAlignment="Left"
- VerticalContentAlignment="Center"
- TextChanged="SearchField_TextChanged"/>
- <Button Grid.Column="2" Grid.Row="0"
- Width="150" Margin="0 0 10 0"
- HorizontalAlignment="Right" Height="35" Click="Button_Click">
-
- Добавить сервис
-
- </Button>
- <Grid Grid.Row="1">
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"/>
- <RowDefinition Height="auto"/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <GroupBox Header="Фильтрация по размеру скидки" Grid.Row="0">
- <ComboBox Name="FiltredComboBox"
- SelectionChanged="FiltredComboBox_SelectionChanged">
- <ComboBoxItem>-</ComboBoxItem>
- <ComboBoxItem>от 0 до 5%</ComboBoxItem>
- <ComboBoxItem>от 5% до 15%</ComboBoxItem>
- <ComboBoxItem>от 15% до 30%</ComboBoxItem>
- <ComboBoxItem>от 30% до 70%</ComboBoxItem>
- <ComboBoxItem>от 70% до 100%</ComboBoxItem>
- </ComboBox>
- </GroupBox>
- <GroupBox Header="Сортировка по цене" Grid.Row="1">
- <ComboBox Name="SortingComboBox"
- SelectionChanged="SortingComboBox_SelectionChanged">
- <ComboBoxItem>-</ComboBoxItem>
- <ComboBoxItem>По возрастанию</ComboBoxItem>
- <ComboBoxItem>По убыванию</ComboBoxItem>
- </ComboBox>
- </GroupBox>
- </Grid>
- </Grid>
-
- </Window>
|