fix: artifacts when using rounded corner and clip to bounds with Window border on Linux

This commit is contained in:
leo 2024-06-15 14:53:31 +08:00
parent f204a744bd
commit e7a1fd9947
No known key found for this signature in database
GPG key ID: B528468E49CD0E58

View file

@ -120,14 +120,15 @@
Background="{DynamicResource Brush.Window}" Background="{DynamicResource Brush.Window}"
BorderBrush="{DynamicResource Brush.Border0}" BorderBrush="{DynamicResource Brush.Border0}"
BorderThickness="1" BorderThickness="1"
CornerRadius="8" CornerRadius="8">
ClipToBounds="True">
<VisualLayerManager> <VisualLayerManager>
<Border CornerRadius="8" ClipToBounds="True">
<ContentPresenter Name="PART_ContentPresenter" <ContentPresenter Name="PART_ContentPresenter"
ContentTemplate="{TemplateBinding ContentTemplate}" ContentTemplate="{TemplateBinding ContentTemplate}"
Content="{TemplateBinding Content}" Content="{TemplateBinding Content}"
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/> VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
</Border>
</VisualLayerManager> </VisualLayerManager>
</Border> </Border>
</Grid> </Grid>