This is a migrated thread and some comments may be shown as answers.

Any theme that I try to apply during runtime only results to the default theme being applied.

1 Answer 16 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
George Adam
Top achievements
Rank 1
George Adam asked on 04 Nov 2018, 10:29 AM
I tried ThemeResolutionService.ApplyThemeToControlTree(this, "ThemeName") it didn't work.

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 05 Nov 2018, 11:29 AM
Hello George,

You need to either drop the theme from the toolbox on the form or manually create an instance. In addition, it would be better to set the ApplicationThemeName property:
var theme = new FluentDarkTheme();
ThemeResolutionService.ApplicationThemeName = "FluentDark";

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Progress Telerik
Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Themes and Visual Style Builder
Asked by
George Adam
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or