Skip to content

Commit 608e574

Browse files
committed
Fix issue (#138
1 parent c2fa27a commit 608e574

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/WPFDevelopers.Shared/Styles/Styles.ListView.xaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,12 @@
9494
TargetType="{x:Type GridViewColumnHeader}">
9595
<Setter Property="HorizontalContentAlignment" Value="Left" />
9696
<Setter Property="VerticalContentAlignment" Value="Center" />
97-
<Setter Property="FontWeight" Value="ExtraBlack" />
9897
<Setter Property="Background" Value="{DynamicResource WD.BackgroundBrush}" />
9998
<Setter Property="BorderBrush" Value="{DynamicResource WD.BaseBrush}" />
10099
<Setter Property="BorderThickness" Value="0,0,0,1" />
100+
<Setter Property="FontSize" Value="{Binding RelativeSource={RelativeSource AncestorType=ListView}, Path=FontSize}" />
101+
<Setter Property="FontWeight" Value="{Binding RelativeSource={RelativeSource AncestorType=ListView}, Path=FontWeight}" />
102+
<Setter Property="FontFamily" Value="{Binding RelativeSource={RelativeSource AncestorType=ListView}, Path=FontFamily}" />
101103
<Setter Property="Padding" Value="{Binding Padding, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ItemsControl}}}" />
102104
<Setter Property="Template">
103105
<Setter.Value>
@@ -197,6 +199,9 @@
197199
<Setter Property="Background" Value="Transparent" />
198200
<Setter Property="BorderBrush" Value="{DynamicResource WD.BaseBrush}" />
199201
<Setter Property="BorderThickness" Value="0,0,0,1" />
202+
<Setter Property="FontSize" Value="{Binding RelativeSource={RelativeSource AncestorType=ListView}, Path=FontSize}" />
203+
<Setter Property="FontWeight" Value="{Binding RelativeSource={RelativeSource AncestorType=ListView}, Path=FontWeight}" />
204+
<Setter Property="FontFamily" Value="{Binding RelativeSource={RelativeSource AncestorType=ListView}, Path=FontFamily}" />
200205
<Setter Property="Padding" Value="{Binding Padding, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ItemsControl}}}" />
201206
<Setter Property="Template">
202207
<Setter.Value>

0 commit comments

Comments
 (0)