top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to programmatically change theme colors?

+1 vote
229 views

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 =
Color.FromArgb(12,12,54,145);
(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?

...