touyets
touyets

Reputation: 1325

Wpf C# - Change the Metro Label foreground color

I am using the Mahapps.Metro but when i try to change the color of its text it states white.

How can I override the color of the label? I want to be able to override it in XAML as well as in the background code in C# as I want to incorporate my ColorAnimation as well for mouseovers and stuff.

Regards,

Simon

Upvotes: 1

Views: 1904

Answers (1)

touyets
touyets

Reputation: 1325

I have found the issue.

The problem is that if you leave in the resourcedictionnary the line stating:

<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colours.xaml"/>

then you can not override a control's colour for foreground if it is a control that is styled by the Mahapps.Metro dll.

Upvotes: 1

Related Questions