<dialogs:ImmersiveDialog xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:dialogs="using:UniGetUI.Avalonia.Views.DialogPages"
    xmlns:automation="clr-namespace:Avalonia.Automation;assembly=Avalonia.Controls"
        xmlns:t="using:UniGetUI.Avalonia.MarkupExtensions"
        x:Class="UniGetUI.Avalonia.Views.DialogPages.TelemetryDialog"
        Title="{t:Translate Share anonymous usage data}"
        IsCloseButtonVisible="False"
        MaxWidth="520"
        MinWidth="420"
        MinHeight="250"

        Background="{DynamicResource AppDialogBackground}">

    <Grid Margin="20"
          RowDefinitions="Auto,Auto"
          RowSpacing="12">

        <!-- Body -->
        <StackPanel Grid.Row="0" Spacing="8">
            <TextBlock Text="{t:Translate UniGetUI collects anonymous usage data with the sole purpose of understanding and improving the user experience.}"
                       TextWrapping="Wrap" Opacity="0.85"/>
            <TextBlock x:Name="Body2" TextWrapping="Wrap" Opacity="0.85"/>
            <TextBlock x:Name="DetailsLink"
                       Text="{t:Translate More details about the shared data and how it will be processed}"
                       TextDecorations="Underline"
                       Cursor="Hand"
                       Opacity="0.9"
                       automation:AutomationProperties.Name="{t:Translate More details about the shared data and how it will be processed}"
                       automation:AutomationProperties.ControlTypeOverride="Hyperlink"/>
            <TextBlock Text="{t:Translate Text='Do you accept that UniGetUI collects and sends anonymous usage statistics, with the sole purpose of understanding and improving the user experience?'}"
                       TextWrapping="Wrap" Opacity="0.85"/>
        </StackPanel>

        <!-- Buttons -->
        <StackPanel Grid.Row="1"
                    Orientation="Horizontal"
                    HorizontalAlignment="Right"
                    Spacing="8"
                    Margin="0,4,0,0">
            <Button x:Name="DeclineButton" Content="{t:Translate Decline}" MinWidth="100"
                    automation:AutomationProperties.Name="{t:Translate Decline}"/>
            <Button x:Name="AcceptButton"  Content="{t:Translate Accept}" MinWidth="100" Classes="accent"
                    automation:AutomationProperties.Name="{t:Translate Accept}"/>
        </StackPanel>

    </Grid>

</dialogs:ImmersiveDialog>
