<Window x:Class="Valg.Eva.Skanning.Scan.Presentation.SelectCountingUnitPopup.SelectCountingUnitView"
        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:selectCountingUnitPopup="clr-namespace:Valg.Eva.Skanning.Scan.Presentation.SelectCountingUnitPopup"
        xmlns:commands1="clr-namespace:Valg.EVA.Skanning.UserInterfaceElements.Commands;assembly=Valg.EVA.Skanning.UserInterfaceElements"
        mc:Ignorable="d" 
        d:DesignHeight="300" 
        d:DataContext="{d:DesignInstance d:Type=selectCountingUnitPopup:SelectCountingUnitViewModel}"
        Style="{DynamicResource PopUpWindowAction}"
        WindowStartupLocation="CenterOwner">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Valg.EVA.Skanning.Assets;component/ResourceDictionaries/ResourceLibrary.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Window.InputBindings>
        <KeyBinding Key="Escape" 
                    Command="{x:Static commands1:WellKnownSystemCommands.CloseCommand}"
                    CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" />
    </Window.InputBindings>
    <StackPanel Margin="30">
        <TextBlock Margin="0,0,0,5" Style="{StaticResource TextBlockNormal}" Text="{Binding ScanLanguageString.SelectCountingUnit_Line1}" />
        <TextBlock Margin="0,0,0,15" Style="{StaticResource TextBlockNormal}" Text="{Binding ScanLanguageString.SelectCountingUnit_Line2}" />
        <Button Margin="0,0,0,15" Style="{StaticResource LinkButtonMedium}"
                Command="{Binding Path=DataContext.SelectCountingUnitCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type selectCountingUnitPopup:SelectCountingUnitView}} }"
                CommandParameter="{Binding FirstCounting}"
                Content="{Binding FirstCounting.Name}"
                Click="ButtonBase_OnClick"
                />
        <TextBlock Margin="0,0,0,15" Style="{StaticResource TextBlockNormal}" Text="{Binding ScanLanguageString.SelectCountingUnit_Or}" />
        <Button Style="{StaticResource LinkButtonMedium}"
                Command="{Binding Path=DataContext.SelectCountingUnitCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type selectCountingUnitPopup:SelectCountingUnitView}} }"
                CommandParameter="{Binding SecondCounting}"
                Content="{Binding SecondCounting.Name}"
                Click="ButtonBase_OnClick"
                />
    </StackPanel>
</Window>

