更新
This commit is contained in:
@@ -2,13 +2,16 @@
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:controls="clr-namespace:WPFluent.Controls">
|
||||
<!--<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="/WPFluent;component/Themes/Dark.xaml"/>
|
||||
</ResourceDictionary.MergedDictionaries>-->
|
||||
<Style x:Key="DefaultFluentWindowExStyle" TargetType="{x:Type controls:FluentWindowEx}">
|
||||
<Setter Property="Background" Value="{DynamicResource WindowBackground}" />
|
||||
<Setter Property="Background" Value="{DynamicResource ApplicationBackgroundColorBrush}" />
|
||||
<Setter Property="BorderBrush" Value="Transparent" />
|
||||
<Setter Property="BorderThickness" Value="0" />
|
||||
<Setter Property="FontSize" Value="{DynamicResource ControlContentThemeFontSize}" />
|
||||
<Setter Property="FontWeight" Value="Normal" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource WindowForeground}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource TextFillColorPrimaryBrush}" />
|
||||
<Setter Property="Height" Value="600" />
|
||||
<Setter Property="Margin" Value="0" />
|
||||
<Setter Property="MinHeight" Value="320" />
|
||||
@@ -26,7 +29,7 @@
|
||||
Icon="{Binding Icon,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=controls:FluentWindowEx}}"
|
||||
Title="{Binding Title,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=controls:FluentWindowEx}}" />
|
||||
<AdornerDecorator>
|
||||
<controls:ClientAreaBorder Background="{DynamicResource WindowBackground}" BorderBrush="Transparent">
|
||||
<controls:ClientAreaBorder Background="{DynamicResource ApplicationBackgroundColorBrush}" BorderBrush="Transparent">
|
||||
<ContentPresenter x:Name="ContentPresenter" TextElement.Foreground="{TemplateBinding Foreground}" />
|
||||
</controls:ClientAreaBorder>
|
||||
</AdornerDecorator>
|
||||
@@ -36,5 +39,5 @@
|
||||
</Setter>
|
||||
<Setter Property="UseLayoutRounding" Value="True" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource DefaultFluentWindowExStyle}" TargetType="{x:Type controls:FluentWindowEx}" />
|
||||
<Style TargetType="{x:Type controls:FluentWindowEx}" BasedOn="{StaticResource DefaultFluentWindowExStyle}"/>
|
||||
</ResourceDictionary>
|
||||
Reference in New Issue
Block a user