How to compose custom "Telerik-based" user control

3 posts, 1 answers
  1. Travis
    Travis avatar
    49 posts
    Member since:
    Dec 2012

    Posted 24 Apr 2013 Link to this post

    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. Travis
    Travis avatar
    49 posts
    Member since:
    Dec 2012

    Posted 26 Apr 2013 Link to this post

    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?
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Answer
    Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 29 Apr 2013 Link to this post

    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.
Back to Top