<Page
    x:Class="Microsoft.PowerToys.Settings.UI.OOBE.Views.OobeOverview"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:tkcontrols="using:CommunityToolkit.WinUI.Controls"
    xmlns:ui="using:CommunityToolkit.WinUI"
    mc:Ignorable="d">

    <controls:OOBEPageControl x:Uid="Oobe_Overview" HeroImage="ms-appx:///Assets/Settings/Modules/OOBE/PTHero.png">
        <controls:OOBEPageControl.PageContent>
            <StackPanel Orientation="Vertical" Spacing="12">
                <StackPanel Orientation="Horizontal" Spacing="8">
                    <Button x:Uid="OOBE_Settings" Click="SettingsLaunchButton_Click" />

                    <HyperlinkButton NavigateUri="https://aka.ms/PowerToysOverview" Style="{StaticResource TextButtonStyle}">
                        <TextBlock x:Uid="Oobe_Overview_DescriptionLinkText" TextWrapping="Wrap" />
                    </HyperlinkButton>
                </StackPanel>

                <StackPanel Orientation="Vertical" Visibility="{x:Bind ShowDataDiagnosticsSetting, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}">
                    <TextBlock
                        x:Uid="Oobe_Overview_Telemetry_Title"
                        Margin="0,24,0,0"
                        Style="{StaticResource BodyStrongTextBlockStyle}" />
                    <TextBlock x:Uid="Oobe_Overview_Telemetry_Desc" Foreground="{ThemeResource TextFillColorSecondaryBrush}" />

                    <tkcontrols:SettingsCard
                        x:Uid="Oobe_Overview_EnableDataDiagnostics"
                        Margin="0,8,0,0"
                        HeaderIcon="{ui:FontIcon Glyph=&#xE9D9;}"
                        IsEnabled="{x:Bind ShowDataDiagnosticsSetting, Mode=OneWay}">
                        <tkcontrols:SettingsCard.Description>
                            <StackPanel Orientation="Vertical">
                                <TextBlock
                                    x:Uid="GeneralPage_EnableDataDiagnosticsText"
                                    Style="{StaticResource SecondaryTextStyle}"
                                    TextWrapping="WrapWholeWords" />
                                <HyperlinkButton
                                    x:Uid="GeneralPage_DiagnosticsAndFeedback_Link"
                                    Margin="0,2,0,0"
                                    FontWeight="SemiBold"
                                    NavigateUri="https://aka.ms/powertoys-data-and-privacy-documentation" />
                                <HyperlinkButton
                                    x:Uid="Oobe_Overview_DiagnosticsAndFeedback_Settings_Link"
                                    Margin="0,2,0,0"
                                    Click="GeneralSettingsLaunchButton_Click"
                                    FontWeight="SemiBold" />
                            </StackPanel>
                        </tkcontrols:SettingsCard.Description>
                        <ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind EnableDataDiagnostics, Mode=TwoWay}" />
                    </tkcontrols:SettingsCard>
                </StackPanel>
            </StackPanel>
        </controls:OOBEPageControl.PageContent>
    </controls:OOBEPageControl>
</Page>