This commit is contained in:
ShrlAlgo
2025-07-11 09:20:23 +08:00
parent c7b104f44f
commit 4d35cadb56
840 changed files with 102347 additions and 11595 deletions

View File

@@ -0,0 +1,20 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/AntdWpf;component/Styles/Converters.xaml" />
</ResourceDictionary.MergedDictionaries>
<Style x:Key="Ant.TextElement" TargetType="{x:Type FrameworkElement}">
<Setter Property="TextBlock.LineStackingStrategy" Value="BlockLineHeight" />
<Setter Property="TextBlock.LineHeight" Value="{Binding FontSize, Mode=OneWay, RelativeSource={RelativeSource Self},
Converter={StaticResource DultiplicationConverter}, ConverterParameter=1.5}" />
</Style>
<Style x:Key="Ant.Control" BasedOn="{StaticResource Ant.TextElement}" TargetType="{x:Type Control}">
<Setter Property="FontFamily" Value="{DynamicResource FontFamily}" />
<Setter Property="FontSize" Value="{DynamicResource FontSizeBase}" />
<Setter Property="Foreground" Value="{DynamicResource TextBrush}" />
</Style>
</ResourceDictionary>