Apply theme to a Control which does not have a RadForm

1 Answer 94 Views
Themes and Visual Style Builder
Ian
Top achievements
Rank 2
Bronze
Iron
Iron
Ian asked on 03 May 2023, 08:59 AM

I have some controls which get embedded inside another application, so they don't have aparent Form.

But they need to share the same Theme as all the forms.

Setting the Theme for the forms is easy.

But I can't see where to apply the same Theme to a Control? Is this even possible?

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 03 May 2023, 11:59 AM

Hi, Ian,

Note that the RadControl.ThemeName property locally sets theme for a control.

If you are still experiencing any further difficulties, it would be greatly appreciated if you can provide more details about the exact scenario you have and what is the undesired behavior that you need to handle. Once we get better understanding of the precise case, we would be able to think about an appropriate solution and provide further assistance.

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Ian
Top achievements
Rank 2
Bronze
Iron
Iron
commented on 04 May 2023, 08:16 AM

Interesting.

When I create a new Control using the VS wizard, I get a sub-class of System.Windows.Forms.UserControl.

When I change this to being a sub-class of RadControl, the Designer breaks.

What's the correct way to create a RadControl please?

Dess | Tech Support Engineer, Principal
Telerik team
commented on 08 May 2023, 01:38 PM

Ian,

The below gif file illustrates the steps I performed on my end according to the described information. Am I missing something?

Make sure that the project is successfully built before opening the designer.

Tags
Themes and Visual Style Builder
Asked by
Ian
Top achievements
Rank 2
Bronze
Iron
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or