locked
Apply Theme at runtime without restarting app.

    Question

  • Hi 

    I have created Windows store app with two style, style1 and style2. Now want to change style from sstyle1 to style2 and vice versa at runtime without restarting the app.

    So,can any body help me to apply the themes at runtime.


    Thanks & Regards Ravi Shankar

    Monday, July 21, 2014 4:41 AM

Answers

  • You could have a viewmodel with an ElementTheme property which you can switch at will. As long as the viewmodel implements INotifyPropertyChanged your visual elements will update when the property changes.
    Monday, July 21, 2014 4:57 AM

All replies

  • You could have a viewmodel with an ElementTheme property which you can switch at will. As long as the viewmodel implements INotifyPropertyChanged your visual elements will update when the property changes.
    Monday, July 21, 2014 4:57 AM
  • May i have any sample app.

    Thanks & Regards Ravi Shankar

    Friday, August 1, 2014 11:08 AM