<Window x:Class="WpfApp1.AddEdit.AddEditItems"
        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:WpfApp1.AddEdit"
        mc:Ignorable="d"
        Title="AddEditItems" Height="450" Width="800" FontSize="16">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>

        <Label Content="{Binding GetHeader}" Grid.Row="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" FontSize="32"/>
        <ListView Height="auto" Grid.Row="1" ItemsSource="{Binding CurrentAgent}" HorizontalAlignment="Center" VerticalAlignment="Center">
            <ListView.ItemTemplate>
                <DataTemplate>
                    <WrapPanel>
                        <Label Content="Наименование" HorizontalAlignment="Center"/>
                            <TextBox Width="150" Text="{Binding Title}"/>
                            <Label Content="Тип агента" HorizontalAlignment="Center"/>
                            <ComboBox Width="150" ItemsSource="{Binding}" SelectedItem="{Binding AgentType.Title}"/>
                            <Label Content="Приоритет" HorizontalAlignment="Center"/>
                            <TextBox Width="150" Text="{Binding Priority}"/>
                            <Label Content="Адрес" HorizontalAlignment="Center"/>
                            <TextBox Width="150" Text="{Binding Address}"/>
                            <Label Content="ИНН" HorizontalAlignment="Center"/>
                            <TextBox Width="150" Text="{Binding INN}"/>
                            <Label Content="КПП" HorizontalAlignment="Center"/>
                            <TextBox Width="150"  Text="{Binding KPP}"/>
                            <Label Content="Имя директора" HorizontalAlignment="Center"/>
                            <TextBox Width="150" Text="{Binding DirectorName}"/>
                            <Label Content="Телефон" HorizontalAlignment="Center"/>
                            <TextBox Width="150"  Text="{Binding Phone}"/>
                            <Label Content="Email" HorizontalAlignment="Center"/>
                            <TextBox Width="150" Text="{Binding Email}"/>
                    </WrapPanel>
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>
        <StackPanel Grid.Row="1" Grid.Column="1" VerticalAlignment="Top">
            <Label Content="Логотип" HorizontalAlignment="Center"/>
            <Image Source="{Binding}" Height="200"/>
            <Button Content="{Binding}"/>
        </StackPanel>
        <Button Content="{Binding}" Grid.Row="2"/>
    </Grid>
</Window>
