top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

How to programmatically change theme colors?

+1 vote

i need both design and programmatically change the theme any one help.... with sample code

posted Nov 11, 2014 by Saravanan

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

(App.Current.Resources["PhoneAccentBrush"] as SolidColorBrush).Color =
(App.Current.Resources["PhoneForegroundBrush"] as
SolidColorBrush).Color = Colors.Green;
(App.Current.Resources["PhoneBackgroundBrush"] as
SolidColorBrush).Color = Colors.Purple;

answer Nov 12, 2014 by Jdk
Similar Questions
+1 vote

hi i am using XAMl for designing i want to know how to set color codes like HTML in XAML any one help how to grab it??

+1 vote
+2 votes

I created to independent project in single application i need to start second page to view the result how can i achieve this any one help?????

+3 votes

I need to change the Wifi channel programmatically (Of course, I will enable the Wifi to function as Hotsopt first).
Is there any API/Driver in the source code that I can use?

Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.