<Window x:Class="ProbnikDemo.PgChange"
        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:ProbnikDemo"
        mc:Ignorable="d"
        Title="PgChange" Height="800" Width="800">
    <Grid Margin="0,0,-8,-235">
        <StackPanel Orientation="Vertical">
            <GroupBox Header="Наименование">
                <TextBox x:Name="TxtTitle" Text="{Binding Title}"></TextBox>

            </GroupBox>

            <GroupBox Header="Тип агента">
                <ComboBox x:Name="ComboType"></ComboBox>
            </GroupBox>

            <GroupBox Header="Адрес">
                <TextBox x:Name="TxtAdress" Text="{Binding Address}"></TextBox>
            </GroupBox>
            <GroupBox Header="ИНН">
                <TextBox x:Name="TxtINN" Text="{Binding INN}"></TextBox>
            </GroupBox>
            <GroupBox Header="КПП">
                <TextBox x:Name="TxtKPP" Text="{Binding KPP}"></TextBox>
            </GroupBox>
            <GroupBox Header="Имя директора">
                <TextBox x:Name="TxtDirector" Text="{Binding DirectorName}"></TextBox>
            </GroupBox>
            <GroupBox Header="Телефон">
                <TextBox x:Name="TxtPhone" Text="{Binding Phone}"></TextBox>
            </GroupBox>

            <GroupBox Header="Email">
                <TextBox x:Name="TxtEmail" Text="{Binding Email}"></TextBox>
            </GroupBox>


            <GroupBox Header="Приоритет">
                <TextBox x:Name="TxtPriority" Text="{Binding Priority}"></TextBox>
            </GroupBox>


            <StackPanel Orientation="Vertical" HorizontalAlignment="Left" Width="792">
                <Image x:Name="IMG" Width="150" Height="150" Source="{Binding Logo}"></Image>
                <Button Content="Добавить фото" x:Name="BtnImg" Click="BtnImg_Click" ></Button>
            </StackPanel>

            <Button  Content="Удалить  агента" x:Name="BtnDel" Click="BtnDel_Click" Margin="20,20,20,20"></Button>
        </StackPanel>
    </Grid>
</Window>
