<UserControl x:Class="Valg.EVA.Skanning.Verify.Startup.VerifyBallotPaper.VerificationOverviewControl"
             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:verifyBallotPaper="clr-namespace:Valg.EVA.Skanning.Verify.Startup.VerifyBallotPaper"
             xmlns:ballotPaperXofY="clr-namespace:Valg.EVA.Skanning.Verify.Startup.VerifyBallotPaper.BallotPaperXOfY"
             xmlns:preview="clr-namespace:Valg.EVA.Skanning.Verify.Startup.Preview"
             xmlns:userInterfaceElements="clr-namespace:Valg.EVA.Skanning.UserInterfaceElements;assembly=Valg.EVA.Skanning.UserInterfaceElements"
             mc:Ignorable="d" Focusable="False"
             d:DataContext="{d:DesignInstance d:Type=verifyBallotPaper:VerificationOverviewViewModel}">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Valg.EVA.Skanning.Assets;component/ResourceDictionaries/ResourceLibrary.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid Focusable="False">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="150*"/>
            <ColumnDefinition Width="1"/>
            <ColumnDefinition Width="134*"/>
            <ColumnDefinition Width="15*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition MaxHeight="50"/>
        </Grid.RowDefinitions>

        <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" CanContentScroll="True" Grid.Row="0" Grid.Column="0">
            <verifyBallotPaper:VerifyBallotPaperControl DataContext="{Binding NavigateBallotsViewModel.CurrentBallotPaperForVerify}"/>
        </ScrollViewer>



        <DockPanel Grid.Row="0" Grid.Column="1" Margin="0,20,0,10">
            <Line  X1="0" Y1="0" X2="0" Y2="2000" Stroke="Black" StrokeDashArray="1 1" StrokeThickness="1" ClipToBounds="False"></Line>
        </DockPanel>
        <DockPanel Grid.Row="0" Grid.Column="2">
            <preview:Preview Margin="20,10,20,20" DataContext="{Binding NavigateBallotsViewModel.CurrentBallotPaperForVerify.Preview}" />
        </DockPanel>

        <StackPanel Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="1" 
                    Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Center">
            <Button x:Name="PreviousButton" 
                    Style="{StaticResource BlueButtonPrevious}" 
                    Command="{Binding Path=NavigateBallotsViewModel.PreviousCommand}" 
                    IsEnabled="{Binding NavigateBallotsViewModel.IsPreviousButtonEnabled, Mode=OneWay}" 
                    Width="160" 
                    Height="50"
                    Content="{Binding LanguageString.Button_Previous}">
            </Button>

            <ballotPaperXofY:BallotPaperXOfYControl DataContext="{Binding NavigateBallotsViewModel.CurrentBallotPaperForVerify.BallotPaperXOfYViewModel}" />

            <Button x:Name="NextButtonBlinking" Style="{StaticResource BlueButtonNext}" 
                    Command="{Binding Path=NavigateBallotsViewModel.SaveAndNextCommand}" 
                    IsEnabled="{Binding NavigateBallotsViewModel.IsNextButtonEnabled, Mode=OneWay}"
                    userInterfaceElements:FocusExtension.IsFocused="{Binding NavigateBallotsViewModel.CurrentBallotPaperForVerify.VerifiableViewModelsCollectionVisitor.EndOfCycle.IsElementFocused}"
                    Width="160" Height="50"
                    Content="{Binding LanguageString.Button_Next}">
            </Button>
        </StackPanel>
    </Grid>
</UserControl>

