Changing themes at runtime

Hello,

Trying to use Theme Style Sheets at runtime for UI skinning. So, I have 2 .tss assets ready. I’m switching them by assigning to UIDocument.panelSettings.themeStyleSheet. However, it works only once on first assignment. Looking into UIDebugger it appears that when assigning to themeStyleSheet it is added to Styles list of the root element, thus having both tss loaded.

The question is, what is the right way to change Theme Style Sheets at runtime, or how would you implement ui skins?

Thanks.

1 Like

Thanks for info.