MahApps.Metro icon indicating copy to clipboard operation
MahApps.Metro copied to clipboard

Change Textcolor of MetroTabItem

Open DerKiLLa opened this issue 4 years ago • 0 comments

Describe the bug

I try to change the color of a MetroTabItem. HeaderedControlHelper.HeaderForeground and Foreground dont change anything. Only Background="DimGray" works, but i need to change the Text color (selected and non-selected).

Steps to reproduce

<mah:MetroTabControl Background="DimGray" Foreground="DarkRed" mah:HeaderedControlHelper.HeaderForeground="Firebrick">
  <mah:MetroTabItem Header="Allgemein" mah:HeaderedControlHelper.HeaderFontSize="15" mah:HeaderedControlHelper.HeaderForeground="Red" Foreground="Beige" mah:HeaderedControlHelper.HeaderBackground="Aqua">
  </mah:MetroTabItem>
</mah:MetroTabControl>

Expected behavior

Textcolor should be red.

Actual behavior

Color doesn't change

Environment

MahApps.Metro version: v2.4.9
Windows build number: Win10 21H1
Visual Studio: 2019 16.6.0
Target Framework: .Net Core 3.1

Screenshots

2022-06-15 09_56_17-Window

DerKiLLa avatar Jun 15 '22 07:06 DerKiLLa