<?xml version="1.0" encoding="utf-8" ?>
<local:LaunchTypeSettingSectionBase
    x:Class="Bili.Workspace.Controls.Settings.LaunchTypeSettingSection"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:controls="using:Bili.Workspace.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:ext="using:Bili.Workspace.Resources.Extension"
    xmlns:labs="using:CommunityToolkit.Labs.WinUI"
    xmlns:local="using:Bili.Workspace.Controls.Settings"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <labs:SettingsCard Description="{ext:Locale Name=LaunchTypeDescription}" Header="{ext:Locale Name=LaunchType}">
        <labs:SettingsCard.HeaderIcon>
            <controls:FluentIcon Symbol="CalendarPlay" />
        </labs:SettingsCard.HeaderIcon>
        <ComboBox
            MinWidth="120"
            ItemsSource="{x:Bind ViewModel.LaunchTypes}"
            SelectedItem="{x:Bind ViewModel.LaunchType, Mode=TwoWay}">
            <ComboBox.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Converter={StaticResource LaunchTypeTextConverter}}" />
                </DataTemplate>
            </ComboBox.ItemTemplate>
        </ComboBox>
    </labs:SettingsCard>
</local:LaunchTypeSettingSectionBase>
