<?xml version="1.0" encoding="utf-8" ?>
<local:SettingsPageBase
    x:Class="Bili.Workspace.Pages.SettingsPage"
    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:ext="using:Bili.Workspace.Resources.Extension"
    xmlns:local="using:Bili.Workspace.Pages"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:settings="using:Bili.Workspace.Controls.Settings"
    mc:Ignorable="d">

    <Page.Resources>
        <Style
            x:Name="SettingsSubHeadingText"
            BasedOn="{StaticResource BodyStrongTextBlockStyle}"
            TargetType="TextBlock">
            <Setter Property="Margin" Value="1,0,0,5" />
        </Style>

        <x:Double x:Key="SettingsCardWrapThreshold">260</x:Double>
        <x:Double x:Key="SettingsCardWrapNoIconThreshold">120</x:Double>
    </Page.Resources>

    <ScrollViewer Style="{StaticResource PageScrollViewerStyle}">
        <StackPanel
            Margin="{StaticResource PageMargin}"
            Spacing="3"
            TabFocusNavigation="Local">
            <StackPanel.ChildrenTransitions>
                <RepositionThemeTransition IsStaggeringEnabled="False" />
            </StackPanel.ChildrenTransitions>
            <TextBlock Style="{StaticResource SettingsSubHeadingText}" Text="{ext:Locale Name=Generic}" />
            <settings:StartupPositionSettingSection />
            <settings:LaunchTypeSettingSection />
            <TextBlock
                Style="{StaticResource SettingsSubHeadingText}"
                Margin="1,29,0,5"
                Text="{ext:Locale Name=About}" />
            <settings:AboutSettingSection />
        </StackPanel>
    </ScrollViewer>
</local:SettingsPageBase>
