<?xml version="1.0" encoding="utf-8" ?>
<local:StartupPageControlBase
    x:Class="RodelAgent.UI.Controls.Startup.StartupFinishSection"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:animations="using:CommunityToolkit.WinUI.Animations"
    xmlns:controls="using:RodelAgent.UI.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:ext="using:RodelAgent.UI.Extensions"
    xmlns:local="using:RodelAgent.UI.Controls.Startup"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Image
            Width="180"
            VerticalAlignment="Center"
            Source="ms-appx:///Assets/party_popper_3d.png"
            Stretch="Uniform">
            <animations:Implicit.ShowAnimations>
                <animations:OpacityAnimation
                    From="0"
                    To="1.0"
                    Duration="0:0:0.5" />
            </animations:Implicit.ShowAnimations>
        </Image>
        <StackPanel
            Grid.Column="1"
            Margin="0,0,32,0"
            VerticalAlignment="Center"
            Spacing="20"
            Visibility="{x:Bind ViewModel.IsLastStep, Mode=OneWay}">
            <TextBlock Style="{StaticResource TitleTextBlockStyle}" Text="{ext:Locale Name=FinishTitle}" />
            <TextBlock
                Foreground="{ThemeResource TextFillColorSecondaryBrush}"
                Text="{ext:Locale Name=FinishDescription}"
                TextWrapping="Wrap" />

            <animations:Implicit.ShowAnimations>
                <animations:TranslationAnimation
                    From="0, 20, 0"
                    To="0,0,0"
                    Duration="0:0:0.5" />
                <animations:OpacityAnimation
                    From="0"
                    To="1.0"
                    Duration="0:0:0.5" />
            </animations:Implicit.ShowAnimations>
        </StackPanel>
    </Grid>
</local:StartupPageControlBase>
