how to apply different color for theme without adding new resource file

1 Answer 30 Views
Calendar, DateTimePicker, TimePicker and Clock DateTimePicker Treeview
Sharad
Top achievements
Rank 1
Sharad asked on 12 Mar 2025, 09:40 AM

Hello,

is there any alternate available to apply specific theme directly on win form controls other than making a change in stylesheet (to apply different colors and appearance?) basically, for specific theme user wants to apply different color. one option is to create .tsp file and add it to resource. so is there any other way possible where user don't need to create. tsp or any other file and by using direct property he can achieve the same.  (controls like date time picker, calendar, tree view, Rad buttons etc.)

Thank you.

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 13 Mar 2025, 03:20 PM

Hi Sharad,

You can try to modify the theme programmatically. You can check the How to Modify Themes Programmatically KB article, which demonstrates how to do that. However, it will still require the inspection of the theme settings in Visual Style Builder (VSB) before trying to modify it in code. In general, modifying the theme in code could be possible, but it is a clumsy and slow process. In general, it will be better to use the VSB instead.

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Enjoyed our products? Share your experience on G2 and receive a $25 Amazon gift card for a limited time!

Tags
Calendar, DateTimePicker, TimePicker and Clock DateTimePicker Treeview
Asked by
Sharad
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or