Files
Shrlalgo.RvKits/AntdWpfDemo/App.xaml
2025-07-31 20:12:24 +08:00

58 lines
2.9 KiB
XML

<Application
x:Class="AntdDemo.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:antd="https://github.com/ShrlAlgo/AntDesignWPF"
xmlns:local="clr-namespace:AntDesignWPFDemo"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!-- StartupUri="Views/ShellView.xaml" -->
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary>
<local:Bootstrapper x:Key="Bootstrapper" />
</ResourceDictionary>
<!--<ResourceDictionary Source="pack://application:,,,/AntDesignWPF;component/Themes/Light.xaml" />-->
<ResourceDictionary Source="pack://application:,,,/AntDesignWPF;component/Themes/Dark.xaml" />
<ResourceDictionary Source="pack://application:,,,/AntDesignWPF;component/Themes/Primary/DaybreakBlue.xaml" />
<ResourceDictionary Source="pack://application:,,,/AntDesignWPF;component/Themes/Generic.xaml" />
<!--<ResourceDictionary Source="pack://application:,,,/AntDesignWPF;component/Themes/Controls.xaml" />-->
<!--<ResourceDictionary Source="pack://application:,,,/AntDesignWPF;component/Themes/AntIcons.xaml" />-->
</ResourceDictionary.MergedDictionaries>
<Style TargetType="Control" x:Key="Ant.H1">
<Setter Property="FontSize" Value="30" />
<Setter Property="FontWeight" Value="Medium" />
<Setter Property="Foreground" Value="{DynamicResource AntDesign.Brush.TextPrimary}" />
<!--<Setter Property="Foreground" Value="#0D1A26" />-->
<Setter Property="Margin" Value="0,8,0,20" />
</Style>
<Style
BasedOn="{StaticResource Ant.H1}"
TargetType="Control"
x:Key="Ant.H2">
<Setter Property="FontSize" Value="24" />
<Setter Property="Margin" Value="0,14" />
</Style>
<Style
BasedOn="{StaticResource Ant.H1}"
TargetType="Control"
x:Key="Ant.H4">
<Setter Property="FontSize" Value="14" />
<Setter Property="Margin" Value="0,0,0,16" />
</Style>
<Style TargetType="TextBlock" x:Key="Ant.P">
<Setter Property="FontFamily" Value="Chinese Quote" />
<Setter Property="FontSize" Value="14" />
<!--<Setter Property="Foreground" Value="#314659" />-->
<Setter Property="Foreground" Value="{DynamicResource AntDesign.Brush.TextPrimary}" />
<Setter Property="LineHeight" Value="28" />
<Setter Property="Margin" Value="0,14" />
<Setter Property="TextWrapping" Value="Wrap" />
</Style>
</ResourceDictionary>
</Application.Resources>
</Application>