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

How to compose custom "Telerik-based" user control

2 Answers 594 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Travis
Top achievements
Rank 1
Travis asked on 24 Apr 2013, 01:15 PM
Hello,

I would like to compose an aggregate user control and have it be Telerik theme-capable, etc, all those things. I am familiar with how to compose using the build-in UserControl, but is there an analog in the Telerik library? RadControl doesn't seem to be quite it, or there's no User Interface component.

Thank you...

Regards,

Michael Powell

2 Answers, 1 is accepted

Sort by
0
Travis
Top achievements
Rank 1
answered on 26 Apr 2013, 06:10 PM
Any takers on this one? I could start from Control, more probably UserControl, but I don't know how theme-able that would be. Basically I want a control that captures basic view part of an editor capability: populated by RadPropertyGrid, RadGridView, and other controls that expose the model for editing purposes. In a UserControl (or RadUserControl?) that I can drop in when I need it. Is this possible?
0
Accepted
Stefan
Telerik team
answered on 29 Apr 2013, 06:30 AM
Hi Michael,

Thank you for writing.

We do not offer a "RadUserControl" in our suite set. For accomplish your scenario, you should use the standard UserControl, add the desired Rad controls to it, and apply the desired theme. To apply a theme to all controls on a UserControl, you can use the following method:
ThemeResolutionService.ApplyThemeToControlTree(this, "YourThemeName");

Alternatively, you can use the ThemeName property of each control: http://www.telerik.com/help/winforms/themes-using-default-themes.html.

I hope that you find this information useful.

Regards,
Stefan
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Tags
General Discussions
Asked by
Travis
Top achievements
Rank 1
Answers by
Travis
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or