mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-04-11 03:36:36 +08:00
30 lines
1.8 KiB
XML
30 lines
1.8 KiB
XML
<ResourceDictionary
|
|
xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
<ControlTheme x:Key="{x:Type Window}" TargetType="Window">
|
|
<Setter Property="Background" Value="{DynamicResource WindowDefaultBackground}" />
|
|
<Setter Property="TransparencyBackgroundFallback" Value="{DynamicResource WindowDefaultBackground}" />
|
|
<Setter Property="Foreground" Value="{DynamicResource WindowDefaultForeground}" />
|
|
<Setter Property="FontSize" Value="{DynamicResource DefaultFontSize}" />
|
|
<Setter Property="FontWeight" Value="{DynamicResource DefaultFontWeight}" />
|
|
<Setter Property="FontFamily" Value="{DynamicResource DefaultFontFamily}" />
|
|
<Setter Property="Template">
|
|
<ControlTemplate TargetType="Window">
|
|
<Panel>
|
|
<Border Name="PART_TransparencyFallback" IsHitTestVisible="False" />
|
|
<Border Background="{TemplateBinding Background}" IsHitTestVisible="False" />
|
|
<Panel Margin="{TemplateBinding WindowDecorationMargin}" Background="Transparent" />
|
|
<VisualLayerManager Name="PART_VisualLayerManager">
|
|
<ContentPresenter
|
|
Name="PART_ContentPresenter"
|
|
Margin="{TemplateBinding Padding}"
|
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
Content="{TemplateBinding Content}"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}" />
|
|
</VisualLayerManager>
|
|
</Panel>
|
|
</ControlTemplate>
|
|
</Setter>
|
|
</ControlTheme>
|
|
</ResourceDictionary> |