fix<Window>: fix AdornerDecorator missing

This commit is contained in:
leo 2022-10-19 11:38:28 +08:00
parent e31a304cac
commit b1102ac035

View file

@ -24,6 +24,7 @@
<Setter Property="Template"> <Setter Property="Template">
<Setter.Value> <Setter.Value>
<ControlTemplate TargetType="{x:Type Window}"> <ControlTemplate TargetType="{x:Type Window}">
<AdornerDecorator>
<Border <Border
Padding="{TemplateBinding Padding}" Padding="{TemplateBinding Padding}"
Background="{TemplateBinding Background}" Background="{TemplateBinding Background}"
@ -31,6 +32,7 @@
BorderBrush="{TemplateBinding BorderBrush}"> BorderBrush="{TemplateBinding BorderBrush}">
<ContentPresenter/> <ContentPresenter/>
</Border> </Border>
</AdornerDecorator>
</ControlTemplate> </ControlTemplate>
</Setter.Value> </Setter.Value>
</Setter> </Setter>