<UserControl x:Class="Valg.EVA.Skanning.JobManagement.Startup.UI.Duplicates.ImageNavigatorView"
             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:ballotPaperImage="clr-namespace:Valg.EVA.Skanning.UserInterfaceElements.BallotPaperImage;assembly=Valg.EVA.Skanning.UserInterfaceElements"
             xmlns:duplicates="clr-namespace:Valg.EVA.Skanning.JobManagement.Startup.UI.Duplicates"
             mc:Ignorable="d" 
             d:DataContext="{d:DesignInstance duplicates:ImageNavigatorViewModel}"
             d:DesignHeight="800" d:DesignWidth="1000">
    <Grid Visibility="{Binding IsVisible, Converter={StaticResource BooleanToVisibilityConverter}}">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="50"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid Grid.Row="0">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <TextBlock Grid.Row="0" Text="{Binding CurrentImageTitle}" Style="{StaticResource TextBlockMediumHeader}" Margin="0, 0, 0, 10"/>
            <Border Grid.Row="1" BorderThickness="2" BorderBrush="{StaticResource ActiveElementBorderBrush}">
                <ballotPaperImage:ImageView DataContext="{Binding CurrentImage}" Focusable="False" />
            </Border>
        </Grid>
        <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
            <Button 
                    Style="{StaticResource BlueButtonPrevious}" 
                    Command="{Binding PreviousImage}" 
                    IsEnabled="{Binding PreviousButtonEnabled}"
                    Height="40" 
                    Width="150"
                    Content="{Binding JobManagementLanguageString.ButtonText_Previous}"/>
            <TextBlock Style="{StaticResource TextBlockLargeHeader}" HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding CurrentImageText, FallbackValue='1 av 5'}" Margin="10"/>
            <Button 
                    Style="{StaticResource BlueButtonNextIconRight}" 
                    Command="{Binding NextImage}" 
                    IsEnabled="{Binding NextButtonEnabled}"
                    Height="40" 
                    Width="150"
                    Content="{Binding JobManagementLanguageString.ButtonText_Next}"/>
        </StackPanel>
    </Grid>
</UserControl>

