Files
ShrlAlgoToolkit/AntDesignWPF/Controls/Control.xaml

22 lines
1.2 KiB
Plaintext
Raw Normal View History

2025-07-31 20:12:01 +08:00
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<ResourceDictionary.MergedDictionaries>
2025-07-31 20:12:24 +08:00
<ResourceDictionary Source="pack://application:,,,/AntDesignWPF;component/Themes/Converters.xaml" />
2025-07-31 20:12:01 +08:00
</ResourceDictionary.MergedDictionaries>
2025-07-31 20:12:24 +08:00
2025-07-31 20:12:01 +08:00
<Style TargetType="{x:Type FrameworkElement}" x:Key="Ant.TextElement">
<Setter Property="TextBlock.LineStackingStrategy" Value="BlockLineHeight" />
2025-07-31 20:12:24 +08:00
<!--<Setter Property="TextBlock.Foreground" Value="{DynamicResource AntDesign.Brush.TextPrimary}"/>-->
2025-07-31 20:12:01 +08:00
<Setter Property="TextBlock.LineHeight" Value="{Binding FontSize, Mode=OneWay, RelativeSource={RelativeSource Self}, Converter={StaticResource DultiplicationConverter}, ConverterParameter=1.5}" />
</Style>
<Style
BasedOn="{StaticResource Ant.TextElement}"
TargetType="{x:Type Control}"
x:Key="Ant.Control">
<Setter Property="FontFamily" Value="{DynamicResource FontFamily}" />
<Setter Property="FontSize" Value="{DynamicResource FontSizeBase}" />
2025-07-31 20:12:24 +08:00
<Setter Property="Foreground" Value="{DynamicResource AntDesign.Brush.TextPrimary}" />
2025-07-31 20:12:01 +08:00
</Style>
</ResourceDictionary>