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,13 +24,15 @@
<Setter Property="Template"> <Setter Property="Template">
<Setter.Value> <Setter.Value>
<ControlTemplate TargetType="{x:Type Window}"> <ControlTemplate TargetType="{x:Type Window}">
<Border <AdornerDecorator>
Padding="{TemplateBinding Padding}" <Border
Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}"
BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"> BorderThickness="{TemplateBinding BorderThickness}"
<ContentPresenter/> BorderBrush="{TemplateBinding BorderBrush}">
</Border> <ContentPresenter/>
</Border>
</AdornerDecorator>
</ControlTemplate> </ControlTemplate>
</Setter.Value> </Setter.Value>
</Setter> </Setter>