<UserControl x:Class="Valg.EVA.Skanning.Verify.Startup.VerifyBallotPaper.Stamp.StampVerificationControl"
             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:verify="clr-namespace:Valg.EVA.Skanning.Verify.Startup.VerifyBallotPaper"
             xmlns:userInterfaceElements="clr-namespace:Valg.EVA.Skanning.UserInterfaceElements;assembly=Valg.EVA.Skanning.UserInterfaceElements"
             mc:Ignorable="d">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Valg.EVA.Skanning.Assets;component/ResourceDictionaries/ResourceLibrary.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>

    <Border Style="{StaticResource BlueBackgroundBorder}" Padding="25,30,30,30" Width="450" Height="167" >
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="30"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="30"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <TextBlock Style="{StaticResource NeedsVerificationIcon}" Foreground="White"  Grid.Column="0" Grid.Row="0" Visibility="{Binding NeedsVerification, Converter={StaticResource BooleanToVisibilityConverter}}" />
            <TextBlock Grid.Column="1" Grid.Row="0" Style="{StaticResource TextBlockMediumHeader}" Foreground="White" Text="{Binding VerifyLanguageString.StampVerificationPage_Header, FallbackValue='Har seddelen riktig stempel?'}" Grid.ColumnSpan="2" />
            <ItemsControl Grid.Column="1" Grid.Row="1" Focusable="False" verify:ActiveMainControlManager.IsMainControl="True" Grid.ColumnSpan="2">
                <Button
                    Tag="FocusElement"
                    x:Name="NoButton"
                    Focusable="True"
                    userInterfaceElements:FocusExtension.IsFocused="{Binding IsRejectButtonFocused}" 
                    Command="{Binding RejectStamp}" 
                    Style="{StaticResource YesNoBlueWhiteButtonSelect}"
                    Content="{Binding VerifyLanguageString.StampVerificationPage_RejectButton, FallbackValue='Nei, forkast seddelen'}"/>
                <Button
                    Tag="FocusElement"
                    x:Name="YesButton"
                    Focusable="True"
                    userInterfaceElements:FocusExtension.IsFocused="{Binding IsApprovButtonFocused}" 
                    Command="{Binding ApproveStamp}" 
                    Style="{StaticResource YesNoBlueWhiteButtonSelect}" 
                    Content="{Binding VerifyLanguageString.StampVerificationPage_ApproveButton, FallbackValue='Ja, seddelen er gyldig'}"/>
            </ItemsControl>
        </Grid>
    </Border>

</UserControl>

