2025-08-20 12:10:13 +08:00
|
|
|
<ResourceDictionary
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
2026-02-20 15:31:44 +08:00
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2026-01-02 17:30:41 +08:00
|
|
|
xmlns:controls="clr-namespace:Melskin.Controls"
|
2026-02-20 15:31:44 +08:00
|
|
|
xmlns:decorations="clr-namespace:Melskin.Controls.Decorations">
|
2025-08-20 12:10:13 +08:00
|
|
|
|
2026-02-20 15:31:44 +08:00
|
|
|
<Style x:Key="EmbossCheckBoxStyle" TargetType="{x:Type CheckBox}">
|
2025-08-26 21:33:20 +08:00
|
|
|
<Setter Property="FocusVisualStyle" Value="{DynamicResource FocusVisual}" />
|
|
|
|
|
<Setter Property="Background" Value="{DynamicResource ControlBackgroundNormalBrush}" />
|
2025-08-20 12:10:13 +08:00
|
|
|
<Setter Property="Foreground" Value="{DynamicResource TextPrimaryBrush}" />
|
|
|
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
|
|
|
<Setter Property="FontSize" Value="14" />
|
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
|
|
|
|
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="{x:Type CheckBox}">
|
2026-02-20 15:31:44 +08:00
|
|
|
<Grid x:Name="templateRoot" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
2025-08-20 12:10:13 +08:00
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
2025-09-04 22:39:00 +08:00
|
|
|
<decorations:EmbossBorder
|
2026-02-20 15:31:44 +08:00
|
|
|
x:Name="checkBoxEmboss"
|
|
|
|
|
Width="24"
|
|
|
|
|
Height="24"
|
2025-08-26 21:33:20 +08:00
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
|
CornerRadius="4"
|
2025-08-20 12:10:13 +08:00
|
|
|
Intensity="0.4"
|
2026-02-20 15:31:44 +08:00
|
|
|
RenderTransformOrigin="0.5,0.5" />
|
2026-01-02 17:30:30 +08:00
|
|
|
<decorations:SlotBorder
|
2026-02-20 15:31:44 +08:00
|
|
|
x:Name="markSlot"
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
Width="24"
|
|
|
|
|
Height="24"
|
2025-08-20 12:10:13 +08:00
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
|
CornerRadius="4"
|
|
|
|
|
Intensity="0.2"
|
2026-02-20 15:31:44 +08:00
|
|
|
Visibility="Collapsed">
|
2025-09-08 19:49:09 +08:00
|
|
|
<controls:IconElement
|
2026-02-20 15:31:44 +08:00
|
|
|
x:Name="checkMark"
|
2026-01-02 17:30:30 +08:00
|
|
|
Margin="1"
|
2026-02-20 15:31:44 +08:00
|
|
|
Foreground="{DynamicResource PrimaryNormalBrush}"
|
|
|
|
|
Symbol="Check" />
|
2025-09-04 22:39:00 +08:00
|
|
|
</decorations:SlotBorder>
|
2025-08-20 12:10:13 +08:00
|
|
|
<ContentPresenter
|
2026-02-20 15:31:44 +08:00
|
|
|
x:Name="contentPresenter"
|
2025-08-20 12:10:13 +08:00
|
|
|
Grid.Column="1"
|
2026-01-02 17:30:30 +08:00
|
|
|
Margin="{TemplateBinding Padding}"
|
2026-02-20 15:31:44 +08:00
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
2026-01-02 17:30:30 +08:00
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
2026-02-20 15:31:44 +08:00
|
|
|
Focusable="False"
|
|
|
|
|
RecognizesAccessKey="True"
|
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2025-08-20 12:10:13 +08:00
|
|
|
</Grid>
|
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
|
<Trigger Property="HasContent" Value="True">
|
|
|
|
|
<Setter Property="FocusVisualStyle" Value="{DynamicResource OptionMarkFocusVisual}" />
|
|
|
|
|
<Setter Property="Padding" Value="4,0,0,0" />
|
|
|
|
|
</Trigger>
|
|
|
|
|
<Trigger Property="IsChecked" Value="True">
|
2026-02-20 15:31:44 +08:00
|
|
|
<Setter TargetName="markSlot" Property="Visibility" Value="Visible" />
|
|
|
|
|
<Setter TargetName="checkBoxEmboss" Property="Visibility" Value="Collapsed" />
|
|
|
|
|
<Setter TargetName="contentPresenter" Property="TextElement.Foreground" Value="{DynamicResource PrimaryNormalBrush}" />
|
2025-08-20 12:10:13 +08:00
|
|
|
</Trigger>
|
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
|
|
|
<Setter Property="Cursor" Value="Hand" />
|
2026-02-20 15:31:44 +08:00
|
|
|
<Setter TargetName="checkMark" Property="Foreground" Value="{DynamicResource PrimaryFocusedBrush}" />
|
|
|
|
|
<Setter TargetName="contentPresenter" Property="TextElement.Foreground" Value="{DynamicResource PrimaryFocusedBrush}" />
|
2025-08-20 12:10:13 +08:00
|
|
|
</Trigger>
|
|
|
|
|
<Trigger Property="IsEnabled" Value="False">
|
2026-02-20 15:31:44 +08:00
|
|
|
<Setter TargetName="markSlot" Property="Intensity" Value="0" />
|
|
|
|
|
<Setter TargetName="markSlot" Property="Background" Value="{DynamicResource ControlBackgroundDisabledBrush}" />
|
|
|
|
|
<Setter TargetName="checkMark" Property="Foreground" Value="{DynamicResource PrimaryDisabledBrush}" />
|
2025-08-20 12:10:13 +08:00
|
|
|
|
2026-02-20 15:31:44 +08:00
|
|
|
<Setter TargetName="checkBoxEmboss" Property="ShaderEnabled" Value="False" />
|
|
|
|
|
<Setter TargetName="checkBoxEmboss" Property="Background" Value="{DynamicResource ControlBackgroundDisabledBrush}" />
|
|
|
|
|
<Setter TargetName="contentPresenter" Property="TextElement.Foreground" Value="{DynamicResource TextDisabledBrush}" />
|
2025-08-20 12:10:13 +08:00
|
|
|
</Trigger>
|
|
|
|
|
<Trigger Property="IsPressed" Value="True">
|
2026-02-20 15:31:44 +08:00
|
|
|
<Setter TargetName="checkBoxEmboss" Property="RenderTransform">
|
2025-08-20 12:10:13 +08:00
|
|
|
<Setter.Value>
|
|
|
|
|
<ScaleTransform ScaleX="0.9" ScaleY="0.9" />
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Trigger>
|
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
2026-02-20 15:31:44 +08:00
|
|
|
<Style x:Key="SlotCheckBoxStyle" TargetType="{x:Type CheckBox}">
|
2025-08-26 21:33:20 +08:00
|
|
|
<Setter Property="FocusVisualStyle" Value="{DynamicResource FocusVisual}" />
|
|
|
|
|
<Setter Property="Background" Value="{DynamicResource ControlBackgroundNormalBrush}" />
|
2025-08-20 12:10:13 +08:00
|
|
|
<Setter Property="Foreground" Value="{DynamicResource TextPrimaryBrush}" />
|
|
|
|
|
<Setter Property="FontSize" Value="14" />
|
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="{x:Type CheckBox}">
|
2026-02-20 15:31:44 +08:00
|
|
|
<Grid x:Name="templateRoot" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
2025-08-20 12:10:13 +08:00
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
|
</Grid.ColumnDefinitions>
|
2025-09-04 22:39:00 +08:00
|
|
|
<decorations:SlotBorder
|
2026-02-20 15:31:44 +08:00
|
|
|
x:Name="checkBoxSlot"
|
|
|
|
|
Width="24"
|
|
|
|
|
Height="24"
|
2025-08-20 12:10:13 +08:00
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
|
CornerRadius="4"
|
|
|
|
|
Intensity="0.2"
|
2026-02-20 15:31:44 +08:00
|
|
|
RenderTransformOrigin="0.5,0.5" />
|
2026-01-02 17:30:30 +08:00
|
|
|
<decorations:EmbossBorder
|
2026-02-20 15:31:44 +08:00
|
|
|
x:Name="markEmboss"
|
2026-01-02 17:30:30 +08:00
|
|
|
Grid.Column="0"
|
2026-02-20 15:31:44 +08:00
|
|
|
Width="24"
|
2026-01-02 17:30:30 +08:00
|
|
|
Height="24"
|
|
|
|
|
Padding="2"
|
2026-02-20 15:31:44 +08:00
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
|
CornerRadius="4"
|
|
|
|
|
Intensity="0.4"
|
|
|
|
|
Visibility="Collapsed">
|
2025-08-20 12:10:13 +08:00
|
|
|
<Rectangle
|
2026-02-20 15:31:44 +08:00
|
|
|
x:Name="checkMark"
|
2026-01-02 17:30:30 +08:00
|
|
|
Margin="2"
|
2026-02-20 15:31:44 +08:00
|
|
|
Fill="{DynamicResource PrimaryNormalBrush}"
|
2025-08-20 12:10:13 +08:00
|
|
|
RadiusX="3"
|
2026-02-20 15:31:44 +08:00
|
|
|
RadiusY="3" />
|
2025-09-04 22:39:00 +08:00
|
|
|
</decorations:EmbossBorder>
|
2025-08-20 12:10:13 +08:00
|
|
|
<ContentPresenter
|
2026-02-20 15:31:44 +08:00
|
|
|
x:Name="contentPresenter"
|
2025-08-20 12:10:13 +08:00
|
|
|
Grid.Column="1"
|
2026-01-02 17:30:30 +08:00
|
|
|
Margin="{TemplateBinding Padding}"
|
2026-02-20 15:31:44 +08:00
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
2026-01-02 17:30:30 +08:00
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
2026-02-20 15:31:44 +08:00
|
|
|
Focusable="False"
|
|
|
|
|
RecognizesAccessKey="True"
|
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2025-08-20 12:10:13 +08:00
|
|
|
</Grid>
|
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
|
<Trigger Property="HasContent" Value="True">
|
|
|
|
|
<Setter Property="FocusVisualStyle" Value="{DynamicResource OptionMarkFocusVisual}" />
|
|
|
|
|
<Setter Property="Padding" Value="4,0,0,0" />
|
|
|
|
|
</Trigger>
|
|
|
|
|
<Trigger Property="IsChecked" Value="True">
|
2026-02-20 15:31:44 +08:00
|
|
|
<Setter TargetName="markEmboss" Property="Visibility" Value="Visible" />
|
|
|
|
|
<Setter TargetName="checkBoxSlot" Property="Visibility" Value="Collapsed" />
|
|
|
|
|
<Setter TargetName="contentPresenter" Property="TextElement.Foreground" Value="{DynamicResource PrimaryNormalBrush}" />
|
2025-08-20 12:10:13 +08:00
|
|
|
</Trigger>
|
|
|
|
|
<!-- 鼠标高亮,隐藏边框,显示深度效果 -->
|
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
|
|
|
<Setter Property="Cursor" Value="Hand" />
|
2026-02-20 15:31:44 +08:00
|
|
|
<Setter TargetName="checkMark" Property="Fill" Value="{DynamicResource PrimaryFocusedBrush}" />
|
|
|
|
|
<Setter TargetName="contentPresenter" Property="TextElement.Foreground" Value="{DynamicResource PrimaryFocusedBrush}" />
|
2025-08-20 12:10:13 +08:00
|
|
|
</Trigger>
|
|
|
|
|
<Trigger Property="IsEnabled" Value="False">
|
2026-02-20 15:31:44 +08:00
|
|
|
<Setter TargetName="checkBoxSlot" Property="ShaderEnabled" Value="False" />
|
|
|
|
|
<Setter TargetName="checkBoxSlot" Property="Background" Value="{DynamicResource ControlBackgroundDisabledBrush}" />
|
|
|
|
|
<Setter TargetName="markEmboss" Property="ShaderEnabled" Value="False" />
|
|
|
|
|
<Setter TargetName="markEmboss" Property="Background" Value="{DynamicResource ControlBackgroundDisabledBrush}" />
|
|
|
|
|
<Setter TargetName="checkMark" Property="Fill" Value="{DynamicResource PrimaryDisabledBrush}" />
|
|
|
|
|
<Setter TargetName="contentPresenter" Property="TextElement.Foreground" Value="{DynamicResource TextDisabledBrush}" />
|
2025-08-20 12:10:13 +08:00
|
|
|
</Trigger>
|
|
|
|
|
<Trigger Property="IsPressed" Value="True">
|
2026-02-20 15:31:44 +08:00
|
|
|
<Setter TargetName="checkBoxSlot" Property="RenderTransform">
|
2025-08-20 12:10:13 +08:00
|
|
|
<Setter.Value>
|
|
|
|
|
<ScaleTransform ScaleX="0.9" ScaleY="0.9" />
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Trigger>
|
|
|
|
|
|
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
2026-02-20 15:31:44 +08:00
|
|
|
<Style x:Key="DefaultCheckBoxStyle" TargetType="{x:Type CheckBox}">
|
2025-08-26 21:33:20 +08:00
|
|
|
<Setter Property="FocusVisualStyle" Value="{DynamicResource FocusVisual}" />
|
|
|
|
|
<Setter Property="Background" Value="{DynamicResource ControlBackgroundNormalBrush}" />
|
2025-08-20 12:10:13 +08:00
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource BorderNormalBrush}" />
|
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource TextPrimaryBrush}" />
|
|
|
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
|
|
|
<Setter Property="FontSize" Value="14" />
|
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
2026-02-22 20:03:42 +08:00
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
2025-08-20 12:10:13 +08:00
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="{x:Type CheckBox}">
|
2026-02-20 15:31:44 +08:00
|
|
|
<Grid x:Name="templateRoot" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
2025-08-20 12:10:13 +08:00
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Border
|
2026-02-20 15:31:44 +08:00
|
|
|
x:Name="checkBoxBorder"
|
|
|
|
|
Width="18"
|
|
|
|
|
Height="18"
|
|
|
|
|
Margin="3,2"
|
2025-08-20 12:10:13 +08:00
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
|
CornerRadius="4"
|
2026-02-20 15:31:44 +08:00
|
|
|
RenderTransformOrigin="0.5,0.5">
|
|
|
|
|
<Grid x:Name="markGrid" Margin="-1">
|
2025-08-20 12:10:13 +08:00
|
|
|
<Border
|
2026-02-20 15:31:44 +08:00
|
|
|
x:Name="markBorder"
|
2025-08-20 12:10:13 +08:00
|
|
|
Background="{DynamicResource PrimaryNormalBrush}"
|
|
|
|
|
CornerRadius="4"
|
2026-02-20 15:31:44 +08:00
|
|
|
Opacity="0">
|
2025-09-08 19:49:09 +08:00
|
|
|
<controls:IconElement
|
2026-01-02 17:30:30 +08:00
|
|
|
Margin="3"
|
2026-02-20 15:31:44 +08:00
|
|
|
Foreground="{TemplateBinding Background}"
|
2025-09-08 19:49:09 +08:00
|
|
|
Symbol="Check" />
|
2025-08-20 12:10:13 +08:00
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
<Rectangle
|
2026-02-20 15:31:44 +08:00
|
|
|
x:Name="indeterminateMark"
|
2026-01-02 17:30:30 +08:00
|
|
|
Margin="3"
|
2026-02-20 15:31:44 +08:00
|
|
|
Fill="{DynamicResource PrimaryNormalBrush}"
|
2025-08-20 12:10:13 +08:00
|
|
|
Opacity="0"
|
|
|
|
|
RadiusX="3"
|
2026-02-20 15:31:44 +08:00
|
|
|
RadiusY="3" />
|
2025-08-20 12:10:13 +08:00
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
<ContentPresenter
|
2026-02-20 15:31:44 +08:00
|
|
|
x:Name="contentPresenter"
|
2025-08-20 12:10:13 +08:00
|
|
|
Grid.Column="1"
|
2026-01-02 17:30:30 +08:00
|
|
|
Margin="{TemplateBinding Padding}"
|
2026-02-20 15:31:44 +08:00
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
2026-01-02 17:30:30 +08:00
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
2026-02-20 15:31:44 +08:00
|
|
|
Focusable="False"
|
|
|
|
|
RecognizesAccessKey="True"
|
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2025-08-20 12:10:13 +08:00
|
|
|
</Grid>
|
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
|
<Trigger Property="HasContent" Value="True">
|
|
|
|
|
<Setter Property="FocusVisualStyle" Value="{DynamicResource OptionMarkFocusVisual}" />
|
|
|
|
|
<Setter Property="Padding" Value="4,0,0,0" />
|
|
|
|
|
</Trigger>
|
|
|
|
|
<Trigger Property="IsChecked" Value="True">
|
2026-02-20 15:31:44 +08:00
|
|
|
<Setter TargetName="markBorder" Property="Opacity" Value="1" />
|
|
|
|
|
<Setter TargetName="indeterminateMark" Property="Opacity" Value="0" />
|
|
|
|
|
<Setter TargetName="contentPresenter" Property="TextElement.Foreground" Value="{DynamicResource PrimaryNormalBrush}" />
|
2025-08-20 12:10:13 +08:00
|
|
|
</Trigger>
|
|
|
|
|
<Trigger Property="IsChecked" Value="{x:Null}">
|
2026-02-20 15:31:44 +08:00
|
|
|
<Setter TargetName="indeterminateMark" Property="Opacity" Value="1" />
|
2025-08-20 12:10:13 +08:00
|
|
|
</Trigger>
|
|
|
|
|
<Trigger Property="IsEnabled" Value="False">
|
2026-02-20 15:31:44 +08:00
|
|
|
<Setter TargetName="checkBoxBorder" Property="BorderBrush" Value="{DynamicResource BorderDisabledBrush}" />
|
|
|
|
|
<Setter TargetName="markBorder" Property="Background" Value="{DynamicResource PrimaryDisabledBrush}" />
|
|
|
|
|
<Setter TargetName="indeterminateMark" Property="Fill" Value="{DynamicResource PrimaryDisabledBrush}" />
|
|
|
|
|
<Setter TargetName="contentPresenter" Property="TextElement.Foreground" Value="{DynamicResource TextDisabledBrush}" />
|
2025-08-20 12:10:13 +08:00
|
|
|
</Trigger>
|
|
|
|
|
<!-- 鼠标高亮,隐藏边框,显示深度效果 -->
|
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
2026-02-20 15:31:44 +08:00
|
|
|
<Setter TargetName="checkBoxBorder" Property="BorderBrush" Value="{DynamicResource PrimaryFocusedBrush}" />
|
|
|
|
|
<Setter TargetName="indeterminateMark" Property="Fill" Value="{DynamicResource PrimaryFocusedBrush}" />
|
|
|
|
|
<Setter TargetName="markBorder" Property="Background" Value="{DynamicResource PrimaryFocusedBrush}" />
|
|
|
|
|
<Setter TargetName="contentPresenter" Property="TextElement.Foreground" Value="{DynamicResource PrimaryFocusedBrush}" />
|
2025-08-20 12:10:13 +08:00
|
|
|
</Trigger>
|
|
|
|
|
|
|
|
|
|
<Trigger Property="IsPressed" Value="True">
|
2026-02-20 15:31:44 +08:00
|
|
|
<Setter TargetName="checkBoxBorder" Property="RenderTransform">
|
2025-08-20 12:10:13 +08:00
|
|
|
<Setter.Value>
|
|
|
|
|
<ScaleTransform ScaleX="0.9" ScaleY="0.9" />
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Trigger>
|
|
|
|
|
|
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
<!-- 默认样式 -->
|
2025-10-10 11:19:58 +08:00
|
|
|
<Style BasedOn="{StaticResource DefaultCheckBoxStyle}" TargetType="{x:Type CheckBox}" />
|
2025-08-20 12:10:13 +08:00
|
|
|
<!-- 工具栏样式 -->
|
|
|
|
|
<Style
|
2026-02-20 15:31:44 +08:00
|
|
|
x:Key="{x:Static ToolBar.CheckBoxStyleKey}"
|
2025-10-10 11:19:58 +08:00
|
|
|
BasedOn="{StaticResource DefaultCheckBoxStyle}"
|
2026-02-20 15:31:44 +08:00
|
|
|
TargetType="{x:Type CheckBox}">
|
2025-08-20 12:10:13 +08:00
|
|
|
<Setter Property="Margin" Value="0,0,8,0" />
|
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
|
|
|
</Style>
|
|
|
|
|
</ResourceDictionary>
|