<?xml version="1.0" encoding="utf-8" ?>
<local:SettingSectionBase
    x:Class="RodelAgent.UI.Controls.Settings.AboutSettingSection"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:base="using:Richasy.WinUI.Share.Base"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:ext="using:RodelAgent.UI.Extensions"
    xmlns:local="using:RodelAgent.UI.Controls.Settings"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <base:SettingsExpander Description="{x:Bind ViewModel.Copyright, Mode=OneWay}" Header="{ext:Locale Name=AppName}">
        <base:SettingsExpander.HeaderIcon>
            <BitmapIcon ShowAsMonochrome="False" UriSource="ms-appx:///Assets/logo.ico" />
        </base:SettingsExpander.HeaderIcon>
        <TextBlock Foreground="{ThemeResource TextFillColorSecondaryBrush}" Text="{x:Bind ViewModel.AppVersion, Mode=OneWay}" />
        <base:SettingsExpander.Items>
            <base:SettingsCard ContentAlignment="Left">
                <StackPanel>
                    <HyperlinkButton
                        HorizontalAlignment="Left"
                        Content="{ext:Locale Name=ProjectHomePage}"
                        NavigateUri="https://github.com/Richasy/Rodel.Agent" />
                    <HyperlinkButton
                        HorizontalAlignment="Left"
                        Click="OnOtherProjectsClick"
                        Content="{ext:Locale Name=OtherProjects}" />
                </StackPanel>
            </base:SettingsCard>
        </base:SettingsExpander.Items>
    </base:SettingsExpander>
</local:SettingSectionBase>
