Files
Shrlalgo.RvKits/WPFluent/Controls/FluentWindow/FluentWindow.xaml
ShrlAlgo 4d35cadb56 更新
2025-07-11 09:20:23 +08:00

45 lines
2.5 KiB
XML

<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:WPFluent.Controls">
<Style TargetType="{x:Type controls:FluentWindow}">
<Setter Property="Background" Value="{DynamicResource ApplicationBackgroundColorBrush}" />
<Setter Property="BorderBrush" Value="{DynamicResource SurfaceStrokeColorDefaultBrush}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="FontSize" Value="{DynamicResource ControlContentThemeFontSize}" />
<Setter Property="FontWeight" Value="Normal" />
<Setter Property="Foreground" Value="{DynamicResource TextFillColorPrimaryBrush}" />
<Setter Property="Height" Value="600" />
<Setter Property="Margin" Value="0" />
<Setter Property="MinHeight" Value="320" />
<Setter Property="MinWidth" Value="500" />
<Setter Property="OverridesDefaultStyle" Value="True" />
<Setter Property="Padding" Value="0" />
<Setter Property="SnapsToDevicePixels" Value="True" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type controls:FluentWindow}">
<!--<AdornerDecorator>
<controls:ClientAreaBorder
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}">
<ContentPresenter x:Name="ContentPresenter" TextElement.Foreground="{TemplateBinding Background}"/>
</controls:ClientAreaBorder>
</AdornerDecorator>-->
<AdornerDecorator>
<controls:ClientAreaBorder
Background="{DynamicResource ApplicationBackgroundColorBrush}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}">
<ContentPresenter x:Name="ContentPresenter" TextElement.Foreground="{TemplateBinding Foreground}" />
</controls:ClientAreaBorder>
</AdornerDecorator>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="UseLayoutRounding" Value="True" />
<Setter Property="Width" Value="1100" />
</Style>
</ResourceDictionary>