<Page x:Class="ViolationNOT.UserPage"
      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.RowDefinitions>
            <RowDefinition Height="50"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Button x:Name="BtnNewViolation" Click="BtnNewViolation_Click" Margin="5,0,500,0">Оформить новое нарушение</Button>
        <DataGrid x:Name="RequestList" Grid.Row="1" Margin="5" >
            <DataGrid.Columns>
                <DataGridTemplateColumn Header="Фото">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Image Height="150" Width="150" Source="{Binding Photo}"></Image>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                <DataGridTextColumn Binding="{Binding Address}" Header="Адресс"></DataGridTextColumn>
                <DataGridTextColumn Binding="{Binding ViolationType.TypeName}" Header="Тип"></DataGridTextColumn>
                <DataGridTextColumn Binding="{Binding Description}" Header="Описание"></DataGridTextColumn>
                <DataGridTextColumn Binding="{Binding StrigFormatIsReviewed}" Header="Статус"></DataGridTextColumn>
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</Page>
