Mohamed Samsudeen
Mohamed Samsudeen

Reputation: 1154

Changing the Accent Color in Windows Phone

How to set the active background color of the elements like button while clicking irrespective of the phone's current accent color?

Upvotes: 0

Views: 62

Answers (1)

Łukasz Rejman
Łukasz Rejman

Reputation: 1892

There is a nice library for that in NuGet called Windows Phone Theme Manager. Type "theme manager" in the search box of NuGet manager window and you will find it.

Then all you have to do is add one line of code in App.xaml.cs file at the end of the constructor:

ThemeManager.SetAccentColor(AccentColor.Blue);

Blue is just an example. You can use any color.

Upvotes: 1

Related Questions