<Window x:Class="Valg.EVA.Skanning.Verify.Startup.NavigationTip.NavigationTipWindow"
        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:navigationTip="clr-namespace:Valg.EVA.Skanning.Verify.Startup.NavigationTip"
        xmlns:commands="clr-namespace:Valg.EVA.Skanning.UserInterfaceElements.Commands;assembly=Valg.EVA.Skanning.UserInterfaceElements"
        mc:Ignorable="d"
        d:DataContext="{d:DesignInstance d:Type=navigationTip:NavigationTipViewModel}"
        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="800" Height="720" ShowGridLines="False">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="280" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="100" />
                <RowDefinition Height="*" />
                <RowDefinition Height="70" />
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
                <RowDefinition Height="150" />
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
                <RowDefinition Height="70" />
            </Grid.RowDefinitions>

            <StackPanel Orientation="Vertical" Grid.ColumnSpan="2" Grid.Row="0" Margin="40, 0, 0, 0" VerticalAlignment="Center">
                <TextBlock TextWrapping="NoWrap" VerticalAlignment="Center" Text="{Binding VerifyLanguageString.NavTip_Title, FallbackValue='Verifiseringstips'}"   FontSize="36" FontFamily="Arial" />
                <TextBlock TextWrapping="Wrap" VerticalAlignment="Center" Text="{Binding VerifyLanguageString.NavTip_Ingress, FallbackValue='For å jobbe så raskt som mulig er det nyttig å vite om disse tastatursnarveiene.'}" Style="{StaticResource TextBlockNormal}" />
            </StackPanel>

            <Image Grid.Row="1" Grid.Column="0" Source="/Valg.EVA.Skanning.Assets;component/Images/key_f12.png" Stretch="None" />            
            <TextBlock Grid.Column="1" Grid.Row="1" Margin="0,0,20,0" TextWrapping="Wrap" Style="{StaticResource TextBlockNormal}" VerticalAlignment="Center">
                <TextBlock.Inlines>
                    <Run FontWeight="Bold" Text="{Binding VerifyLanguageString.NavTip_SectionF12_TextPart1, Mode=OneWay, FallbackValue='F12'}" />
                    <Run Text="{Binding VerifyLanguageString.NavTip_SectionF12_TextPart2, Mode=OneWay, FallbackValue='tar deg til neste område på seddelen som trenger verifisering'}" />
                </TextBlock.Inlines>
            </TextBlock>

            <Image Grid.Row="2" Grid.Column="0" Source="/Valg.EVA.Skanning.Assets;component/Images/key_updown.png" Stretch="None" />
            <StackPanel Grid.Row="2" Grid.Column="1" VerticalAlignment="Center">
                <TextBlock TextWrapping="Wrap" Style="{StaticResource TextBlockNormal}">
                    <TextBlock.Inlines>
                        <Run FontWeight="Bold" Text="{Binding VerifyLanguageString.NavTip_SectionArrowsUpAndDown_TextPart1, Mode=OneWay, FallbackValue='Piler opp og ned'}"></Run>
                        <Run Text="{Binding VerifyLanguageString.NavTip_SectionArrowsUpAndDown_TextPart2, Mode=OneWay, FallbackValue='bruker du for å navigere mellom rader vertikalt'}"></Run>
                    </TextBlock.Inlines>
                </TextBlock>
            </StackPanel>

            <StackPanel Grid.Row="3" Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
                <Image  Source="/Valg.EVA.Skanning.Assets;component/Images/key_0.png" Height="30" Stretch="Fill"/>
                <TextBlock Text="  ...  " Style="{StaticResource TextBlockNormal}" HorizontalAlignment="Center" VerticalAlignment="Center"></TextBlock>
                <Image  Source="/Valg.EVA.Skanning.Assets;component/Images/key_9.png" Height="30" Stretch="Fill" />
            </StackPanel>
            <StackPanel Grid.Row="3" Grid.Column="1" VerticalAlignment="Center">
                <TextBlock TextWrapping="Wrap" Style="{StaticResource TextBlockNormal}" VerticalAlignment="Center">
                    <TextBlock.Inlines>
                        <Run FontWeight="Bold" Text="{Binding VerifyLanguageString.NavTip_SectionNumericKeys_TextPart1, Mode=OneWay, FallbackValue='Nummertaster'}"></Run>
                        <Run Text="{Binding VerifyLanguageString.NavTip_SectionNumericKeys_TextPart2, Mode=OneWay, FallbackValue='brukes til velge en rad basert på nummer der det er mulig'}"></Run>
                    </TextBlock.Inlines>
                </TextBlock>
            </StackPanel>

            <StackPanel Grid.Row="4" Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
                <Image  Source="/Valg.EVA.Skanning.Assets;component/Images/key_alt.png" Height="30" />
                <TextBlock Text="  +  " Style="{StaticResource TextBlockNormal}" HorizontalAlignment="Center" VerticalAlignment="Center"></TextBlock>
                <Image  Source="/Valg.EVA.Skanning.Assets;component/Images/key_leftright.png" Stretch="None" />
            </StackPanel>
            <StackPanel Grid.Row="4" Grid.Column="1" VerticalAlignment="Center">
                <TextBlock TextWrapping="Wrap" Style="{StaticResource TextBlockNormal}" VerticalAlignment="Center">
                    <TextBlock.Inlines>
                        <Run FontWeight="Bold" Text="{Binding VerifyLanguageString.NavTip_SectionArrowsLeftAndRight_TextPart1, Mode=OneWay, FallbackValue='Alt + pil høyre eller venstre'}"></Run>
                        <Run Text="{Binding VerifyLanguageString.NavTip_SectionArrowsLeftAndRight_TextPart2, Mode=OneWay, FallbackValue='brukes til å bla gjennom verifiseringsområdene på seddelen'}"></Run>
                    </TextBlock.Inlines>
                </TextBlock>
            </StackPanel>

            <StackPanel Grid.Row="5" Grid.Column="0" Orientation="Vertical" VerticalAlignment="Center">
                <Image Source="/Valg.EVA.Skanning.Assets;component/Images/key_enter.png" Stretch="None" Margin="0,0,0,10"/>
                <TextBlock Text="{Binding VerifyLanguageString.NavTip_SectionEnter_TextPart3, FallbackValue='eller'}" Style="{StaticResource TextBlockNormal}" HorizontalAlignment="Center" VerticalAlignment="Center"></TextBlock>
                <Image Source="/Valg.EVA.Skanning.Assets;component/Images/key_space.png" Height="30" Width="170" Stretch="Fill" Margin="0,10,0,0"/>
            </StackPanel>
            <TextBlock Grid.Row="5" Grid.Column="1" Margin="0,0,20,0" TextWrapping="Wrap" Style="{StaticResource TextBlockNormal}" VerticalAlignment="Center">
                <TextBlock.Inlines>
                    <Run Text="{Binding VerifyLanguageString.NavTip_SectionEnter_TextPart1, Mode=OneWay, FallbackValue='Enter eller Space'}" FontWeight="Bold" />
                    <Run Text="{Binding VerifyLanguageString.NavTip_SectionEnter_TextPart2, Mode=OneWay, FallbackValue='utfører handling for feltet som er markert. Dersom feltet åpner en meny kan du igjen benytte piltastene og Enter eller Space for å gjøre et valg.'}" />
                </TextBlock.Inlines>
            </TextBlock>

            <Image Grid.Row="6" Grid.Column="0" Source="/Valg.EVA.Skanning.Assets;component/Images/key_esc.png" Stretch="None" />
            <TextBlock Grid.Row="6" Grid.Column="1" Margin="0,0,20,0" TextWrapping="Wrap" Style="{StaticResource TextBlockNormal}" VerticalAlignment="Center">
                <TextBlock.Inlines>
                    <Run Text="{Binding VerifyLanguageString.NavTip_SectionEscape_TextPart1, Mode=OneWay, FallbackValue='Escape'}" TextBlock.FontWeight="Bold" />
                    <Run Text="{Binding VerifyLanguageString.NavTip_SectionEscape_TextPart2, Mode=OneWay, FallbackValue='bruker du for å lukke en åpnet meny'}" />
                </TextBlock.Inlines>
            </TextBlock>
            
            <TextBlock Grid.Row="7" Grid.Column="0" Style="{StaticResource NeedsVerificationIcon}" Foreground="Black" VerticalAlignment="Center" HorizontalAlignment="Center"></TextBlock>
            <TextBlock Grid.Row="7" Grid.Column="1" Margin="0,0,20,0" TextWrapping="Wrap" Style="{StaticResource TextBlockNormal}" VerticalAlignment="Center">
                <TextBlock.Inlines>
                    <Run Text="{Binding VerifyLanguageString.NavTip_SectionNeedVerification_TextPart1, Mode=OneWay, FallbackValue='Varselikon'}" TextBlock.FontWeight="Bold" />
                    <Run Text="{Binding VerifyLanguageString.NavTip_SectionNeedVerification_TextPart2, Mode=OneWay, FallbackValue='indikerer at feltet ikke ble forstått av systemet og må verifiseres'}" />
                </TextBlock.Inlines>
            </TextBlock>

            <TextBlock Grid.Row="8" Grid.Column="0" Style="{StaticResource UserCorrectionHasBeenMadeIcon}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <TextBlock Grid.Row="8" Grid.Column="1" Margin="0,0,20,0" TextWrapping="Wrap" Style="{StaticResource TextBlockNormal}" VerticalAlignment="Center">
                <TextBlock.Inlines>
                    <Run Text="{Binding VerifyLanguageString.NavTip_SectionUserMadeCorrection_TextPart1, Mode=OneWay, FallbackValue='Endringsikon'}" TextBlock.FontWeight="Bold" />
                    <Run Text="{Binding VerifyLanguageString.NavTip_SectionUserMadeCorrection_TextPart2, Mode=OneWay, FallbackValue='indikerer at feltet har blitt verifisert av bruker eller automatisk av systemet'}" />
                </TextBlock.Inlines>
            </TextBlock>

            <StackPanel Grid.Row="9" Grid.Column="0" Grid.ColumnSpan="2" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,40,0">
                <CheckBox IsChecked="{Binding DontShowTipOnStartup}" Content="{Binding VerifyLanguageString.NavTip_CheckboxText}" VerticalAlignment="Center" Style="{StaticResource CheckBoxNormal}" Margin="0,0,50,0" TabIndex="1" />
                <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"
                        IsDefault="True"
                        Content="{Binding VerifyLanguageString.NavTip_ButtonText, FallbackValue='Close'}">
                </Button>
            </StackPanel>
        </Grid>
    </Grid>
</Window>
