Theming entire application

7 posts, 0 answers
  1. Al
    Al avatar
    203 posts
    Member since:
    Oct 2006

    Posted 27 Nov 2014 Link to this post

    Hi, this is probably more of .net question than a Telerik one but I read this article:

    http://www.telerik.com/help/winforms/themes-using-default-themes.html

    and I understand how to set the them but where do I put the code to override onload?  do I do this on one form and then inherit all other forms from that one?
     
    Is this the same for WinForms and radForms?
  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 27 Nov 2014 Link to this post

    Hello Alwin,

    Thank you for writing.

    First I want to clarify that our themes work only with RadControls and does not apply to standard MS controls. Now, the load you saw is just the Load event of the Form. You can use it there, you can put it in the Form's constructor, or on a button click, it is up to you, so you don't need to inherit the form to apply a theme to it.

    I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.

    Regards,
    Stefan
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Al
    Al avatar
    203 posts
    Member since:
    Oct 2006

    Posted 28 Nov 2014 in reply to Stefan Link to this post

    Thanks Stefan,
    I didn't expect the styling to work with the ms controls and I am ok with putting the code in the load event. What I am looking for is a way to style all forms in my app without having to duplicate code & I wasn't sure how to do that.
  5. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 28 Nov 2014 Link to this post

    Hello,

    I understand. Well, this is the way to do it. Once you have an instance of the desired theme, you can use the ThemeResolutionService in order to apply it on a theme level.

    Let us know should you have any other questions.

    Regards,
    Stefan
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Al
    Al avatar
    203 posts
    Member since:
    Oct 2006

    Posted 28 Nov 2014 in reply to Stefan Link to this post

    Thanks Stefan - that is my question though :-)  do I put that code snippit in one form and then inherit from that form in all other forms in the application?
  7. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 28 Nov 2014 Link to this post

    No you don’t have to have this is all the forms. It has to be called in just one place in the whole application and it will affect all forms in it.

    Regards,
    Stefan
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  8. Al
    Al avatar
    203 posts
    Member since:
    Oct 2006

    Posted 28 Nov 2014 in reply to Stefan Link to this post

    Thanks Stefan
Back to Top
UI for WinForms is Visual Studio 2017 Ready