<Window x:Class="Valg.Eva.Skanning.Scan.Presentation.ScanInProgress.BatchIsCompleteWindow"
             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:scanInProgress="clr-namespace:Valg.Eva.Skanning.Scan.Presentation.ScanInProgress"
             xmlns:userInterfaceElements="clr-namespace:Valg.EVA.Skanning.UserInterfaceElements;assembly=Valg.EVA.Skanning.UserInterfaceElements"
             mc:Ignorable="d" 
             d:DesignWidth="612"
             d:DataContext="{d:DesignInstance d:Type=scanInProgress:BatchIsCompleteViewModel}"
             Style="{DynamicResource PopUpWindowAction}"
             WindowStartupLocation="CenterOwner"
             ShowInTaskbar="False">

    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Valg.EVA.Skanning.Assets;component/ResourceDictionaries/ResourceLibrary.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

    <StackPanel Margin="30">
        <TextBlock Text="{Binding BatchIsCompleteText}" Style="{StaticResource TextBlockLargeHeader}" Margin="0,20,0,20"/>
        
        <TextBlock Text="{Binding NumberOfBallotsSoFar}" HorizontalAlignment="Center" Style="{StaticResource TextBlockMediumHeader}" />
        
        <Button Style="{StaticResource BlueButtonNext}" 
                Command="{Binding ScanMoreBallotsFromSameBoxCommand}" 
                userInterfaceElements:FocusExtension.IsFocused="{Binding IsScanMoreBallotsButtonFocused}"
                Click="ButtonBase_OnClick"
                Margin="20,20,20,20" 
                Height="49px"
                TabIndex="1"
                Content="{Binding ScanMoreBallotsFromSameBoxText}">
        </Button>
        
        <Button Margin="20,0,20,20" Style="{StaticResource BlueButtonOk}"
                Content="{Binding AllBallotsInThisBoxAreScannedText}" 
                Height="49px"

                Click="ButtonBase_OnClick"
                Command="{Binding AllBallotsInBoxAreScannedCommand}" 
                TabIndex="2" />

        <Button Margin="20,0,20,20" Height="49" Style="{StaticResource RedButtonCancel}" Content="{Binding DeleteAllScannedBallotsFromBoxAndScanAgainText, FallbackValue='Slett alle skannede sedler i kassen og skann på nytt'}" Click="ButtonBase_OnClick" Command="{Binding DeleteAllScannedBallotsFromBoxAndScanAgainCommand}" TabIndex="3"
                />
    </StackPanel>
</Window>

