整理代码

This commit is contained in:
GG Z
2026-02-20 15:31:44 +08:00
parent 94cf3f3266
commit 9f121cfc7f
149 changed files with 4063 additions and 6964 deletions

View File

@@ -1,8 +1,8 @@
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:Melskin.Controls"
xmlns:decorations="clr-namespace:Melskin.Controls.Decorations"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
xmlns:decorations="clr-namespace:Melskin.Controls.Decorations">
<Style TargetType="{x:Type controls:Card}">
<Setter Property="Focusable" Value="False" />
<Setter Property="Padding" Value="10,8" />
@@ -18,36 +18,36 @@
<ControlTemplate TargetType="{x:Type controls:Card}">
<Border x:Name="mainBorder">
<decorations:LightedSurface
Margin="4"
Padding="0"
HorizontalContentAlignment="Stretch"
VerticalContentAlignment="Stretch"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="{TemplateBinding CornerRadius}"
Foreground="{TemplateBinding Foreground}"
HorizontalContentAlignment="Stretch"
LightSize="{TemplateBinding LightSize}"
Margin="4"
Padding="0"
VerticalContentAlignment="Stretch">
LightSize="{TemplateBinding LightSize}">
<ContentPresenter
Focusable="False"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
x:Name="contentPresenter"
Margin="{TemplateBinding Padding}"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
Focusable="False"
RecognizesAccessKey="True"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
TextElement.Foreground="{TemplateBinding Foreground}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
x:Name="contentPresenter" />
TextElement.Foreground="{TemplateBinding Foreground}" />
</decorations:LightedSurface>
<Border.Effect>
<DropShadowEffect
BlurRadius="12"
Color="{DynamicResource DarkShadowColor}"
Opacity="0.6" />
Opacity="0.6"
Color="{DynamicResource DarkShadowColor}" />
</Border.Effect>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="ShaderEnabled" Value="False">
<Setter Property="Effect" TargetName="mainBorder" Value="{x:Null}" />
<Setter TargetName="mainBorder" Property="Effect" Value="{x:Null}" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>