<UserControl x:Class="Valg.EVA.Skanning.Verify.Startup.BoxComplete.BoxCompleteView"
             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:boxComplete="clr-namespace:Valg.EVA.Skanning.Verify.Startup.BoxComplete"
             xmlns:topBar="clr-namespace:Valg.EVA.Skanning.UserInterfaceElements.TopBar;assembly=Valg.EVA.Skanning.UserInterfaceElements"
             xmlns:userInterfaceElements="clr-namespace:Valg.EVA.Skanning.UserInterfaceElements;assembly=Valg.EVA.Skanning.UserInterfaceElements"
             mc:Ignorable="d"
             d:DataContext="{d:DesignInstance d:Type=boxComplete:BoxCompleteViewModel}"
             d:DesignHeight="500" d:DesignWidth="600"
             Focusable="False">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Valg.EVA.Skanning.Assets;component/ResourceDictionaries/ResourceLibrary.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid Focusable="False">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0" Orientation="Vertical" HorizontalAlignment="Left" Focusable="False">
            <TextBlock Margin="0,30,0,0" Style="{StaticResource TextBlockLargeHeader}" Text="{Binding BoxCompleteHeading}"/>
            <StackPanel Margin="0,15,0,0" Orientation="Horizontal">
                <topBar:BoxCountingInformationView DataContext="{Binding BoxCountingInformationViewModel}"/>
            </StackPanel>
            <Button Margin="0,15,0,0" Style="{StaticResource LinkButtonNormal}"  
                Content="{Binding GoToLastVerifiedBallotPageButtonText}" Command="{Binding GoToLastVerifiedBallotPageCommand}" KeyboardNavigation.TabIndex="1" />
            <Button Margin="0,15,0,0" Style="{StaticResource LinkButtonNormal}"  
                Content="{Binding GoToStartPageButtonText}" Command="{Binding GoToStartPageCommand}" KeyboardNavigation.TabIndex="2" />
        </StackPanel>

        <Button Grid.Row="1" VerticalAlignment="Bottom" Margin="0,15,0,0" Style="{StaticResource BlueButtonNext}" Command="{Binding GetNextBoxToVerifyCommand}" 
                userInterfaceElements:FocusExtension.IsFocused="{Binding IsNextBoxButtonFocused}" 
                Height="49" Width="450" HorizontalAlignment="Left" VerticalContentAlignment="Center"
                Content="{Binding GetNextBoxButtonText}"
                KeyboardNavigation.TabIndex="0">
        </Button>
    </Grid>
</UserControl>

