月更
This commit is contained in:
21
AntDesignWPF/Styles/Control.xaml
Normal file
21
AntDesignWPF/Styles/Control.xaml
Normal file
@@ -0,0 +1,21 @@
|
||||
<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:,,,/AntDesign.WPF;component/Styles/Converters.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
|
||||
<Style TargetType="{x:Type FrameworkElement}" x:Key="Ant.TextElement">
|
||||
<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
|
||||
BasedOn="{StaticResource Ant.TextElement}"
|
||||
TargetType="{x:Type Control}"
|
||||
x:Key="Ant.Control">
|
||||
<Setter Property="FontFamily" Value="{DynamicResource FontFamily}" />
|
||||
<Setter Property="FontSize" Value="{DynamicResource FontSizeBase}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource TextBrush}" />
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
Reference in New Issue
Block a user