<UserControl
    x:Class="AppFramework.Views.EmailActivationView"
    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:extensions="clr-namespace:AppFramework.Extensions"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    Width="500"
    Height="250"
    mc:Ignorable="d">
    <Grid>
        <Border Opacity="1" Style="{StaticResource HeaderBorderStyle}" />

        <TextBlock
            Margin="15"
            FontSize="24"
            FontWeight="Bold"
            Text="{extensions:Translate EmailActivation}" />

        <StackPanel Margin="15" VerticalAlignment="Bottom">
            <TextBlock Text="{extensions:Translate SendEmailActivationLink_Information}" TextWrapping="Wrap" />
            <TextBox Margin="0,10,0,0" Text="{Binding EmailAddress}" />
            <Button
                Margin="0,10"
                Padding="5"
                Command="{Binding SendEmailActivationCommand}"
                Content="{extensions:Translate Submit}"
                IsEnabled="{Binding IsEmailActivationEnabled}" />

            <Button
                Padding="5"
                Command="{Binding CancelCommand}"
                Content="{extensions:Translate Cancel}" />
        </StackPanel>
    </Grid>
</UserControl>
