<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:props="clr-namespace:Ink_Canvas.Properties"
                    xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
                    xmlns:ikw="http://schemas.inkore.net/lib/ui/wpf"
                    xmlns:controls="clr-namespace:Ink_Canvas.Controls;assembly=InkCanvas.Controls">

    <!-- 小白板组件设置面板（由 MiniWhiteboardToolItem.CustomSettingsPanelFactory 加载，事件在代码后置中绑定） -->
    <DataTemplate x:Key="MiniWhiteboardSettingsPanelTemplate">
        <StackPanel>
            <!-- 启用开关 -->
            <controls:LabeledSettingsCard x:Name="EnableCard"
                Header="{x:Static props:FloatingBarStrings.MiniWhiteboard_Settings_Enable}"
                Icon="{x:Static ui:SegoeFluentIcons.Edit}"
                IsOn="True" />

            <!-- 同步 PPT 开关 -->
            <controls:LabeledSettingsCard x:Name="SyncPptCard"
                Header="{x:Static props:FloatingBarStrings.MiniWhiteboard_Settings_SyncPPT}"
                Icon="{x:Static ui:SegoeFluentIcons.Slideshow}"
                IsOn="True" />

            <!-- 默认尺寸 -->
            <ui:SettingsCard Header="{x:Static props:FloatingBarStrings.MiniWhiteboard_Settings_DefaultSize}">
                <ikw:SimpleStackPanel Orientation="Vertical" Spacing="8">
                    <TextBlock x:Name="SizeText"
                               VerticalAlignment="Center" FontFamily="Consolas" />
                    <ikw:SimpleStackPanel Orientation="Horizontal" Spacing="8">
                        <TextBlock Text="W" Width="16" VerticalAlignment="Center" />
                        <Slider x:Name="WidthSlider"
                                Minimum="200" Maximum="1200" Width="200"
                                IsSnapToTickEnabled="True" TickFrequency="10"
                                TickPlacement="None" />
                    </ikw:SimpleStackPanel>
                    <ikw:SimpleStackPanel Orientation="Horizontal" Spacing="8">
                        <TextBlock Text="H" Width="16" VerticalAlignment="Center" />
                        <Slider x:Name="HeightSlider"
                                Minimum="150" Maximum="900" Width="200"
                                IsSnapToTickEnabled="True" TickFrequency="10"
                                TickPlacement="None" />
                    </ikw:SimpleStackPanel>
                </ikw:SimpleStackPanel>
            </ui:SettingsCard>

            <!-- 透明度 -->
            <ui:SettingsCard Header="{x:Static props:FloatingBarStrings.MiniWhiteboard_Settings_Opacity}">
                <ikw:SimpleStackPanel Orientation="Horizontal" Spacing="8">
                    <TextBlock x:Name="OpacityText"
                               VerticalAlignment="Center" FontFamily="Consolas" TextAlignment="Right" />
                    <Slider x:Name="OpacitySlider"
                            Minimum="0.3" Maximum="1"
                            Width="200"
                            IsSnapToTickEnabled="True"
                            TickFrequency="0.05" TickPlacement="None" />
                </ikw:SimpleStackPanel>
            </ui:SettingsCard>
        </StackPanel>
    </DataTemplate>

</ResourceDictionary>
