<ContentDialog
    x:Class="Wino.Dialogs.WinoAccountEmailConfirmationRequiredDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:domain="using:Wino.Core.Domain"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    Title="{x:Bind domain:Translator.WinoAccount_EmailConfirmationPendingDialog_Title}"
    PrimaryButtonClick="ResendClicked"
    PrimaryButtonStyle="{ThemeResource AccentButtonStyle}"
    PrimaryButtonText="{x:Bind domain:Translator.WinoAccount_EmailConfirmationPendingDialog_ResendButton}"
    SecondaryButtonText="{x:Bind domain:Translator.Buttons_Close}"
    Style="{StaticResource WinoDialogStyle}"
    mc:Ignorable="d">

    <ContentDialog.Resources>
        <x:Double x:Key="ContentDialogMinWidth">520</x:Double>
        <x:Double x:Key="ContentDialogMaxWidth">520</x:Double>
    </ContentDialog.Resources>

    <StackPanel Spacing="16">
        <Border
            Padding="14"
            Background="{ThemeResource CardBackgroundFillColorSecondaryBrush}"
            CornerRadius="12">
            <StackPanel Spacing="8">
                <TextBlock
                    x:Name="MessageTextBlock"
                    TextWrapping="WrapWholeWords" />
                <TextBlock
                    x:Name="CountdownTextBlock"
                    Foreground="{ThemeResource TextFillColorSecondaryBrush}"
                    TextWrapping="WrapWholeWords" />
            </StackPanel>
        </Border>

        <ProgressRing
            x:Name="BusyRing"
            Width="20"
            Height="20"
            HorizontalAlignment="Left"
            IsActive="False"
            Visibility="Collapsed" />

        <TextBlock
            x:Name="ErrorTextBlock"
            Foreground="{ThemeResource SystemFillColorCriticalBrush}"
            TextWrapping="WrapWholeWords"
            Visibility="Collapsed" />
    </StackPanel>
</ContentDialog>
