none
Programmatically change Accent Color on Windows Phone 8.1 RRS feed

  • Question

  • Hello!

    I'm writing a Windows Phone 8.1 App (not a WP 8.1 Silverlight App) and I've been googling for several hours on how to programmatically change an accent color.

    One of the topics I found was right here on the site (sorry, can't add a link due to some verification trouble) where it was solved and added the following line to the end of the App's constructor: 

    (Application.Current.Resources["PhoneAccentBrush"] as SolidColorBrush).Color = Colors.Green;

    And I've seen a lot of tutorials and so on where a code like this was said to solve my problem. But it threw me a System.Exception saying that was a "catastrophic failure". So I added it to the end of the MainPage's constructor - nothing happens, the app compiles but the accent color is still default.

    Am I doing anything wrong or is there not any possibility of doing it in WP8.1?

    Thank you in advance!






    Friday, November 7, 2014 11:11 PM

Answers

All replies