fix: column header vertical seperator missing in some cases

This commit is contained in:
leo 2024-07-23 15:14:30 +08:00
parent fa9990c38c
commit cd1eed4356
No known key found for this signature in database

View file

@ -37,22 +37,13 @@
<ControlTemplate> <ControlTemplate>
<Border Background="{DynamicResource Brush.Window}" <Border Background="{DynamicResource Brush.Window}"
BorderBrush="{DynamicResource Brush.Border0}" BorderBrush="{DynamicResource Brush.Border0}"
BorderThickness="0,0,0,1"> BorderThickness="0,0,1,1">
<Grid ColumnDefinitions="*,1">
<ContentPresenter x:Name="PART_ContentPresenter" <ContentPresenter x:Name="PART_ContentPresenter"
Grid.Column="0" Grid.Column="0"
Margin="4,0" Margin="4,0"
Content="{TemplateBinding Content}" Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}" ContentTemplate="{TemplateBinding ContentTemplate}"
HorizontalContentAlignment="Center"/> HorizontalContentAlignment="Center"/>
<Rectangle Name="VerticalSeparator"
Grid.Column="1"
Width="1"
VerticalAlignment="Stretch"
Fill="{DynamicResource Brush.Border0}"
IsVisible="{TemplateBinding AreSeparatorsVisible}" />
</Grid>
</Border> </Border>
</ControlTemplate> </ControlTemplate>
</Setter> </Setter>