<Window x:Class="Valg.EVA.Skanning.Verify.Startup.PlacementInBox.PlacementInBoxWindow"
        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:placementInBox="clr-namespace:Valg.EVA.Skanning.Verify.Startup.PlacementInBox"
        xmlns:commands="clr-namespace:Valg.EVA.Skanning.UserInterfaceElements.Commands;assembly=Valg.EVA.Skanning.UserInterfaceElements"
        mc:Ignorable="d"
        d:DataContext="{d:DesignInstance d:Type=placementInBox:PlacementInBoxViewModel}"
        WindowStartupLocation="CenterOwner"
        ShowInTaskbar="False"
        Style="{DynamicResource PopUpWindowInformation}">
    <Window.InputBindings>
        <KeyBinding Key="Escape" 
                    Command="{x:Static commands:WellKnownSystemCommands.CloseCommand}" 
                    CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}"
                    />
        <KeyBinding Key="Enter" 
                    Command="{x:Static commands:WellKnownSystemCommands.CloseCommand}" 
                    CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}"
                    />
    </Window.InputBindings>
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Valg.EVA.Skanning.Assets;component/ResourceDictionaries/ResourceLibrary.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Grid FocusManager.FocusedElement="{Binding ElementName=OkButton}">
        <Grid Width="600" Height="250" ShowGridLines="False">
            <Grid.RowDefinitions>
                <RowDefinition Height="*" />
                <RowDefinition Height="100" />
            </Grid.RowDefinitions>

            <StackPanel Orientation="Vertical" Grid.Row="0" Margin="40, 20, 0, 0" VerticalAlignment="Center">
                <TextBlock TextWrapping="Wrap" VerticalAlignment="Center" Text="{Binding PlacementInBoxInformation, FallbackValue='Denne seddelen skal ligge som nummer 350 av 831 i kassen'}"   FontSize="36" FontFamily="Arial" />
            </StackPanel>

            <StackPanel Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,40,0">
                <Button Style="{StaticResource BlueButton}" MinWidth="115" Height="49px" 
                        Command="{x:Static commands:WellKnownSystemCommands.CloseCommand}" 
                        CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}"
                        TabIndex="0" Name="OkButton"
                        Content="{Binding VerifyLanguageString.NavTip_ButtonText, FallbackValue='Close'}">
                </Button>
            </StackPanel>
        </Grid>
    </Grid>
</Window>
