整理控件库

This commit is contained in:
GG Z
2025-05-05 17:04:06 +08:00
parent 74532b77be
commit 3eaad7566e
283 changed files with 2156 additions and 17846 deletions

View File

@@ -4,39 +4,37 @@
xmlns:controls="clr-namespace:WPFluent.Controls">
<Style x:Key="DefaultFluentWindowExStyle" TargetType="{x:Type controls:FluentWindowEx}">
<Setter Property="Background" Value="{DynamicResource WindowBackground}" />
<Setter Property="Foreground" Value="{DynamicResource WindowForeground}" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="MinWidth" Value="280" />
<Setter Property="Margin" Value="0" />
<Setter Property="Padding" Value="0" />
<Setter Property="FontSize" Value="{DynamicResource ControlContentThemeFontSize}" />
<Setter Property="FontWeight" Value="Normal" />
<Setter Property="UseLayoutRounding" Value="True" />
<Setter Property="SnapsToDevicePixels" Value="True" />
<Setter Property="Foreground" Value="{DynamicResource WindowForeground}" />
<Setter Property="Height" Value="600" />
<Setter Property="Margin" Value="0" />
<Setter Property="MinHeight" Value="320" />
<Setter Property="MinWidth" Value="460" />
<Setter Property="OverridesDefaultStyle" Value="True" />
<Setter Property="Padding" Value="0" />
<Setter Property="SnapsToDevicePixels" Value="True" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type controls:FluentWindowEx}">
<DockPanel>
<StackPanel>
<controls:TitleBar
Title="{TemplateBinding Title}"
Background="{TemplateBinding Background}"
DockPanel.Dock="Top"
Icon="{TemplateBinding TitleIcon}" />
Foreground="{TemplateBinding Foreground}"
Icon="{Binding Icon,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=controls:FluentWindowEx}}"
Title="{Binding Title,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=controls:FluentWindowEx}}" />
<AdornerDecorator>
<controls:ClientAreaBorder
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}">
<ContentPresenter x:Name="ContentPresenter" />
<controls:ClientAreaBorder Background="{DynamicResource WindowBackground}" BorderBrush="Transparent">
<ContentPresenter x:Name="ContentPresenter" TextElement.Foreground="{TemplateBinding Foreground}" />
</controls:ClientAreaBorder>
</AdornerDecorator>
<!--<controls:SnackbarPresenter x:Name="SnackbarPresenter" DockPanel.Dock="Bottom" />-->
</DockPanel>
</StackPanel>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="UseLayoutRounding" Value="True" />
</Style>
<Style BasedOn="{StaticResource DefaultFluentWindowExStyle}" TargetType="{x:Type controls:FluentWindowEx}" />
</ResourceDictionary>