Skip to content

Commit 3666fd2

Browse files
authored
Update TileGallery.xaml Code Sample Bursh
- On WinUI3 the {DynamicResource TextFillColorPrimaryBrush was dynamic, but I don't know why in here it was static Black. So, I remove it instead and make it use Accent Style.
1 parent 57f05d2 commit 3666fd2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/iNKORE.UI.WPF.Modern.Gallery/Controls/TileGallery.xaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
99
mc:Ignorable="d">
1010

11+
<!-- Resources -->
1112
<UserControl.Resources>
1213
<ResourceDictionary>
1314
<!-- Theme Dictionaries for Store Icon -->
@@ -18,6 +19,7 @@
1819
</ResourceDictionary>
1920
</ResourceDictionary.MergedDictionaries>
2021

22+
<!-- Scroll Button Style -->
2123
<Style x:Key="ScrollButtonStyle" TargetType="Button">
2224
<Setter Property="Background" Value="{DynamicResource FlipViewNextPreviousButtonBackground}" />
2325
<Setter Property="Foreground" Value="{DynamicResource ButtonForeground}" />
@@ -49,6 +51,7 @@
4951
</ResourceDictionary>
5052
</UserControl.Resources>
5153

54+
<!-- Layout -->
5255
<Grid>
5356
<ScrollViewer
5457
x:Name="scroller"
@@ -91,7 +94,7 @@
9194
<ui:FontIcon
9295
Margin="0,8,0,0"
9396
FontSize="44"
94-
Foreground="{ThemeResource TextFillColorPrimaryBrush}"
97+
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
9598
Glyph="&#xE943;" />
9699
</local:HeaderTile.Icon>
97100
</local:HeaderTile>

0 commit comments

Comments
 (0)