KevinA
KevinA

Reputation: 629

WinRT User Selectable Theme

I have a WinRT Application, and I would like the user to be able to select themes, can I define other theme's, besides Light/Dark?

Upvotes: 0

Views: 263

Answers (1)

Filip Skakun
Filip Skakun

Reputation: 31724

It's not built into the platform currently, so you would need to implement it yourself. The way I would do it would be to replace resource dictionaries at app level and recreate the visual tree when switching dictionaries (e.g. remove and add back the entire control tree - the root Frame, current Page etc. The StaticResource bindings never update so you need to force reevaluation and that should be the easiest way to do it.

Upvotes: 1

Related Questions