2024-09-22 11:05:41 +08:00
|
|
|
<ResourceDictionary
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2025-02-10 20:53:40 +08:00
|
|
|
xmlns:controls="clr-namespace:WPFluent.Controls">
|
|
|
|
|
<Style x:Key="DefaultFluentWindowExStyle" TargetType="{x:Type controls:FluentWindowEx}">
|
2024-09-22 11:05:41 +08:00
|
|
|
<Setter Property="Background" Value="{DynamicResource WindowBackground}" />
|
|
|
|
|
<Setter Property="BorderBrush" Value="Transparent" />
|
|
|
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
|
|
|
<Setter Property="FontSize" Value="{DynamicResource ControlContentThemeFontSize}" />
|
|
|
|
|
<Setter Property="FontWeight" Value="Normal" />
|
2025-05-05 17:04:06 +08:00
|
|
|
<Setter Property="Foreground" Value="{DynamicResource WindowForeground}" />
|
|
|
|
|
<Setter Property="Height" Value="600" />
|
|
|
|
|
<Setter Property="Margin" Value="0" />
|
|
|
|
|
<Setter Property="MinHeight" Value="320" />
|
|
|
|
|
<Setter Property="MinWidth" Value="460" />
|
2024-09-22 11:05:41 +08:00
|
|
|
<Setter Property="OverridesDefaultStyle" Value="True" />
|
2025-05-05 17:04:06 +08:00
|
|
|
<Setter Property="Padding" Value="0" />
|
|
|
|
|
<Setter Property="SnapsToDevicePixels" Value="True" />
|
2024-09-22 11:05:41 +08:00
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
2025-02-10 20:53:40 +08:00
|
|
|
<ControlTemplate TargetType="{x:Type controls:FluentWindowEx}">
|
2025-05-05 17:04:06 +08:00
|
|
|
<StackPanel>
|
2024-09-22 11:05:41 +08:00
|
|
|
<controls:TitleBar
|
|
|
|
|
Background="{TemplateBinding Background}"
|
2025-05-05 17:04:06 +08:00
|
|
|
Foreground="{TemplateBinding Foreground}"
|
|
|
|
|
Icon="{Binding Icon,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=controls:FluentWindowEx}}"
|
|
|
|
|
Title="{Binding Title,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=controls:FluentWindowEx}}" />
|
2024-09-22 11:05:41 +08:00
|
|
|
<AdornerDecorator>
|
2025-05-05 17:04:06 +08:00
|
|
|
<controls:ClientAreaBorder Background="{DynamicResource WindowBackground}" BorderBrush="Transparent">
|
|
|
|
|
<ContentPresenter x:Name="ContentPresenter" TextElement.Foreground="{TemplateBinding Foreground}" />
|
2024-09-22 11:05:41 +08:00
|
|
|
</controls:ClientAreaBorder>
|
|
|
|
|
</AdornerDecorator>
|
2025-05-05 17:04:06 +08:00
|
|
|
</StackPanel>
|
2024-09-22 11:05:41 +08:00
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
2025-05-05 17:04:06 +08:00
|
|
|
<Setter Property="UseLayoutRounding" Value="True" />
|
2024-09-22 11:05:41 +08:00
|
|
|
</Style>
|
2025-02-10 20:53:40 +08:00
|
|
|
<Style BasedOn="{StaticResource DefaultFluentWindowExStyle}" TargetType="{x:Type controls:FluentWindowEx}" />
|
2024-09-22 11:05:41 +08:00
|
|
|
</ResourceDictionary>
|