Is it possible to define 2 distinct themes for each mode of the RadGroupBox, or do we have to define a custom control? For instance, I want to have a different background colour for the header in each mode
4 Answers, 1 is accepted
Thank you for contacting Telerik support.
You cannot define a different styling for the GroupBoxStyle modes within a single theme using Visual Style Builder - each theme can hold a single style for a control. For this case you can change the theme or any styles in code after you have changed the GroupBoxStyle. For example you can change the background color when you are switching the mode like this:
If you have any questions, please do not hesitate to contact us.
DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.
However, is there a way to hook into the action of when the groupboxstyle changes, so I make the relevant changes to the appearance?
Thank you for writing.
You can use the RadPropertyChanged event of the header to determine that GroupBoxStyle property is changed:
You can subscribe to this event with the following line of code:
I hope this helps. Should you have any other questions do not hesitate to ask.
Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.