<Window x:Class="WhiteList.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:WhiteList"
        mc:Ignorable="d"
        Title="Приятный шелест" Icon="Images/Приятный шелест.png" MinWidth="800" MinHeight="700" Height="700" Width="800">
    <Grid>
        <StackPanel Orientation="Vertical">
            <StackPanel Orientation="Horizontal">
                <TextBox Name="TextBoxSearch" TextChanged="TextBoxSearch_TextChanged"/>
                <ComboBox Name="ComboBoxFilter" SelectionChanged="ComboBoxFilter_SelectionChanged"/>
                <ComboBox Name="ComboBoxSort" SelectionChanged="ComboBoxFilter_SelectionChanged">
                    
                </ComboBox>
            </StackPanel>
            <ListView Name="ListViewDataBase" SelectionMode="Multiple" SelectionChanged="ListViewDataBase_SelectionChanged">
                <ListView.ItemsPanel>
                    <ItemsPanelTemplate>
                        <WrapPanel Orientation="Vertical" HorizontalAlignment="Center"/>
                    </ItemsPanelTemplate>
                </ListView.ItemsPanel>
                <ListView.ItemTemplate>
                    <DataTemplate>
                        <Border Width="750" BorderBrush="#46B29D" BorderThickness="1" Background="{Binding GetBackground}">
                            <StackPanel Orientation="Horizontal">
                                <Image Source="{Binding GetIcon}" Stretch="Fill" Height="100" Width="100"/>
                                <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
                                    <StackPanel Orientation="Vertical" HorizontalAlignment="Left" Width="560">
                                        <TextBlock Text="{Binding GetTypeAndTitle}"/>
                                        <TextBlock Text="{Binding GetCountSale, StringFormat={}{0} продаж за год}"/>
                                        <TextBlock Text="{Binding Email}"/>
                                        <TextBlock Text="{Binding Priority, StringFormat={}Приоритетность: {0}}"/>
                                    </StackPanel>
                                    <TextBlock HorizontalAlignment="Right" FontSize="40" Text="{Binding GetPercent,StringFormat={}{0}%}"/>
                                </StackPanel>
                            </StackPanel>
                        </Border>
                    </DataTemplate>
                </ListView.ItemTemplate>
            </ListView>
            <StackPanel Orientation="Horizontal">
                <Button Name="BtnChangePriority" Visibility="Hidden" Width="210" Click="ChangePriority_Click">
                    <TextBlock>Изменить приоритет на</TextBlock>
                </Button>
            </StackPanel>
        </StackPanel>
    </Grid>
</Window>
