<userInterfaceElements:EvaWindow x:Class="Valg.EVA.Skanning.UserInterfaceElements.Login.LoginWindow"
        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"   
        mc:Ignorable="d"
        xmlns:userInterfaceElements="clr-namespace:Valg.EVA.Skanning.UserInterfaceElements"
        xmlns:language="clr-namespace:Valg.EVA.Skanning.Resources.Language;assembly=Valg.EVA.Skanning.Resources"
        WindowStartupLocation="CenterOwner"
        ShowInTaskbar="False"
        Style="{DynamicResource PopUpWindowInformation}"
        Title="{x:Static language:LanguageString.LoginWindow_Title}"
        xmlns:login="clr-namespace:Valg.EVA.Skanning.UserInterfaceElements.Login"
        d:DataContext="{d:DesignInstance d:Type=login:LoginWindowViewModel}"
        Icon="{Binding WindowIcon}">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Valg.EVA.Skanning.Assets;component/ResourceDictionaries/ResourceLibrary.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

    <Grid Margin="20" Height="650" Width="800"> 
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition  Height="100"/>
        </Grid.RowDefinitions>
        <Grid Grid.Row="0" 
              x:Name="browserHost" 
              Visibility="{Binding ShowLoginBox, Converter={StaticResource BooleanToVisibilityConverter}}"/>
        <StackPanel Grid.Row="0" Visibility="{Binding ShowErrorBox, Converter={StaticResource BooleanToVisibilityConverter}}">
            <TextBlock TextWrapping="Wrap"  Style="{StaticResource TextBlockLargeHeader}" Text="{Binding LanguageString.LoginWindow_Error_Title, FallbackValue='Failed to login. Something went wrong ...'}" 
                       Margin="0,0,0,20"/>
            <BulletDecorator Width="Auto" Margin="10,0,0,0">
                <BulletDecorator.Bullet>
                    <Ellipse Fill="Black" Width="5" Height="5" />
                </BulletDecorator.Bullet>
                <TextBlock Style="{StaticResource TextBlockNormal}" Text="{Binding LanguageString.LoginWindow_Error_Internet, FallbackValue='Sjekk at du har tilkobling til internett'}" Margin="10,0,0,0" TextWrapping="Wrap" />
            </BulletDecorator>
            <BulletDecorator Width="Auto" Margin="10,0,0,0">
                <BulletDecorator.Bullet>
                    <Ellipse Fill="Black" Width="5" Height="5" />
                </BulletDecorator.Bullet>
                <TextBlock Style="{StaticResource TextBlockNormal}" Text="{Binding LanguageString.LoginWindow_Error_ClientCertificate, FallbackValue='Sjekk at kommunens klientsertifikat er installert'}" Margin="10,0,0,0" TextWrapping="Wrap" />
            </BulletDecorator>
            <BulletDecorator Width="Auto" Margin="10,0,0,0">
                <BulletDecorator.Bullet>
                    <Ellipse Fill="Black" Width="5" Height="5" />
                </BulletDecorator.Bullet>
                <TextBlock Style="{StaticResource TextBlockNormal}" Text="{Binding LanguageString.LoginWindow_Error_BuypassCertificateSelected, FallbackValue='Hvis du har Buypass-kort i kortleseren, pass på at du ikke velger sertifikatet fra Buypass-kortet. Du må velge din kommunes eller fylkes klientsertifikat. Buypass-kortet kan du bruke først når du kommer til ID-porten.'}" Margin="10,0,0,0" TextWrapping="Wrap" />
            </BulletDecorator>
        </StackPanel>
        <Button Grid.Row="1"  Style="{StaticResource RedButtonCancel}"
                Height="49px"
                TabIndex="0"
                HorizontalAlignment="Right"
                IsCancel="True"
                Margin="0, 30, 0, 0"
                Name="CloseButton"
                Content="{x:Static language:ScanLanguageString.Exit}">
        </Button>        
    </Grid>
</userInterfaceElements:EvaWindow>
