更新整理

This commit is contained in:
GG Z
2025-04-24 20:56:44 +08:00
parent 155cef46f8
commit 5b6d67b571
813 changed files with 14437 additions and 12362 deletions

View File

@@ -0,0 +1,57 @@
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:WPFluent.Gallery.Controls"
xmlns:ui="https://github.com/ShrlAlgo/WPFluent">
<Style TargetType="{x:Type controls:TypographyControl}">
<Setter Property="Background" Value="Transparent" />
<Setter Property="Focusable" Value="False" />
<Setter Property="Padding" Value="0,15,10,15" />
<Setter Property="Margin" Value="0,10,0,0" />
<Setter Property="SnapsToDevicePixels" Value="True" />
<Setter Property="OverridesDefaultStyle" Value="True" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type controls:TypographyControl}">
<Border
Padding="{TemplateBinding Padding}"
Background="{TemplateBinding Background}"
CornerRadius="4">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="286" />
<ColumnDefinition Width="156" />
<ColumnDefinition Width="140" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<ui:TextBlock
Grid.Column="0"
Margin="24,0,0,0"
VerticalAlignment="Center"
FontTypography="{TemplateBinding ExampleFontTypography}"
Text="{TemplateBinding Example}" />
<TextBlock
Grid.Column="1"
VerticalAlignment="Center"
Text="{TemplateBinding VariableFont}" />
<TextBlock
Grid.Column="2"
VerticalAlignment="Center"
Text="{TemplateBinding SizeLinHeight}" />
<TextBlock
Grid.Column="3"
VerticalAlignment="Center"
Text="{TemplateBinding FontTypographyStyle}" />
</Grid>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>