How to apply theme to all controls automatically at design time?

1 Answer 51 Views
Window
Joke
Top achievements
Rank 1
Joke asked on 30 Sep 2022, 03:04 PM

The default design time theme is `office black`, is there any approaches to change default theme?

Set `telerik:StyleManager.Theme="xxx"` for each control is very troublesome.

1 Answer, 1 is accepted

Sort by
0
Stenly
Telerik team
answered on 04 Oct 2022, 01:06 PM

Hello Joke Huang,

Currently, in order to see a different theme in the designer, it would have to be applied on а control level by setting the StyleManager.Theme attached property. This is the case when using the Xaml assemblies and StyleManager to apply a theme. This is because the application-wide theme is evaluated at run-time.

As an alternative, what I could suggest would be to use the NoXaml assemblies and the Implicit Styles theming approach. This will allow you to change themes at design-time with only a few clicks.

With this being said, would it be possible to give this suggestion a try and let me know how it goes?

Regards,
Stenly
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Window
Asked by
Joke
Top achievements
Rank 1
Answers by
Stenly
Telerik team
Share this question
or