Skip to content

Commit ad28f40

Browse files
authored
Foreground color updates header and icon
1 parent 371b37a commit ad28f40

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.Expander.xaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
</VisualStateGroup>
7171
</VisualStateManager.VisualStateGroups>
7272
<wpf:PackIcon Kind="ChevronDown" Opacity=".38" x:Name="ExpandPath" RenderTransformOrigin="0.5,0.5"
73-
Height="24" Width="24">
73+
Height="24" Width="24" Foreground="{Binding RelativeSource={RelativeSource AncestorType={x:Type Expander}}, Path=Foreground}">
7474
<wpf:PackIcon.RenderTransform>
7575
<TransformGroup>
7676
<ScaleTransform/>
@@ -278,6 +278,7 @@
278278
Style="{StaticResource MaterialDesignExpanderDownHeaderStyle}"
279279
TextElement.FontSize="15"
280280
Opacity=".87"
281+
Foreground="{TemplateBinding Foreground}"
281282
Content="{TemplateBinding Header}"
282283
ContentTemplate="{TemplateBinding HeaderTemplate}"
283284
ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"
@@ -347,4 +348,4 @@
347348
</Setter>
348349
</Style>
349350

350-
</ResourceDictionary>
351+
</ResourceDictionary>

0 commit comments

Comments
 (0)