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?
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?
6 Answers, 1 is accepted
0
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
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.
0
Al
Top achievements
Rank 1
Iron
Iron
Iron
answered on 28 Nov 2014, 06:34 AM
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.
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.
0
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
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.
0
Al
Top achievements
Rank 1
Iron
Iron
Iron
answered on 28 Nov 2014, 07:55 AM
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?
0
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
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.
0
Al
Top achievements
Rank 1
Iron
Iron
Iron
answered on 28 Nov 2014, 09:42 AM
Thanks Stefan