Skip to content

Commit be21b91

Browse files
committed
move font setters from row style to TableView style
1 parent 79e9c91 commit be21b91

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Themes/TableView.xaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515

1616
<Style x:Key="DefaultTableViewStyle"
1717
TargetType="local:TableView">
18+
<Setter Property="FontFamily"
19+
Value="{ThemeResource ContentControlThemeFontFamily}" />
20+
<Setter Property="FontSize"
21+
Value="{ThemeResource ControlContentThemeFontSize}" />
1822
<Setter Property="IsTabStop"
1923
Value="False" />
2024
<Setter Property="TabNavigation"

src/Themes/TableViewRow.xaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
TargetType="local:TableViewRow"
1717
win:BasedOn="{StaticResource DefaultListViewItemStyle}"
1818
not_win:BasedOn="{StaticResource ListViewItemExpanded}">
19-
<Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
20-
<Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
2119
<Setter Property="Background" Value="{ThemeResource TableViewRowBackground}" />
2220
<Setter Property="Foreground" Value="{ThemeResource TableViewRowForeground}" />
2321
<Setter Property="TabNavigation" Value="Local" />

0 commit comments

Comments
 (0)