You are viewing our Forum Archives. To view or take place in current topics click here.
[C#] Changing theme of Metro UI in button question
Posted:

[C#] Changing theme of Metro UI in button questionPosted:

ip
  • Winter 2020
Status: Offline
Joined: Dec 30, 201211Year Member
Posts: 3,778
Reputation Power: 3016
Status: Offline
Joined: Dec 30, 201211Year Member
Posts: 3,778
Reputation Power: 3016
Alright, well I have a metro app that I am going to be designing and I wanted to know if it was possible to edit the theme (color) of the form by a button. I know the code in xaml to change it, but how would I implement it into a button? Code below:
RequestedTheme="Dark" or RequestedTheme="Light"


If you guys could help me out, that would be a tremendous help for me and you would receive a little gift as well.

Preview of App:
Light
[ Register or Signin to view external links. ]

Dark
[ Register or Signin to view external links. ]


Thanks guys
#2. Posted:
Imp
  • Retired Staff
Status: Offline
Joined: Jan 01, 201113Year Member
Posts: 1,957
Reputation Power: 401
Status: Offline
Joined: Jan 01, 201113Year Member
Posts: 1,957
Reputation Power: 401
Well it would appear that you can't change the entire theme without restarting the app.

[ Register or Signin to view external links. ]

the last post looks good to use, so that the user is prompted for the restart.
#3. Posted:
FIashed
  • New Member
Status: Offline
Joined: May 10, 20149Year Member
Posts: 30
Reputation Power: 1
Status: Offline
Joined: May 10, 20149Year Member
Posts: 30
Reputation Power: 1
cant just change...
but overall looks nice.. ;)
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.