<Page x:Class="ViolationNOT.NewViolationPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:local="clr-namespace:ViolationNOT"
      mc:Ignorable="d" 
      d:DesignHeight="450" d:DesignWidth="800"
      Title="Новое нарушение">

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <Grid Grid.Column="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition/>
                <RowDefinition Height="Auto"/>
                <RowDefinition/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <TextBlock Margin="5">Адресс</TextBlock>
            <TextBox Grid.Row="1" Text="{Binding Address}" Height="Auto" Margin="5" TextWrapping="Wrap"></TextBox>
            <TextBlock Grid.Row="2" Margin="5">Описание</TextBlock>
            <TextBox Grid.Row="3" Text="{Binding Description}" Height="Auto" Margin="5"></TextBox>
            <Button x:Name="BtnAddViolation" Click="BtnAddViolation_Click"  Grid.Row="4" Margin="40,5,40,5">Создать заявку</Button>
        </Grid>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <TextBlock Text="Тип нарушения"></TextBlock>
            <StackPanel Grid.Row="1">
                <ComboBox Name="CmbType" DisplayMemberPath="TypeName" Height="30" Margin="5" SelectionChanged="CmbType_SelectionChanged"></ComboBox>
                <TextBox x:Name="TxtCarNumber" Margin="5"></TextBox>
            </StackPanel>
            <Button x:Name="BtnAddPhoto" Grid.Row="2" Margin="5" Click="BtnAddPhoto_Click">Добавить фото</Button>
            <Image Grid.Row="3" Name="Photo" Margin="5"></Image>
        </Grid>
    </Grid>
</Page>
