I have a SplitContainer which holds a a RadPanel. I've checked EnableHostControlMode and now I have a RadPanelBarGroupElement.ControlPanel.
I'm trying to change the color to transparent, but no matter what I choose, once I start the app, it changes to white.
Suggestions?
3 Answers, 1 is accepted
0
Boyko Markov
Telerik team
answered on 13 May 2008, 08:36 AM
Hi Bob,
Thank you for contacting us.
It depends on what backColor is serialized in design-time. You can take a look at the Form's Designer.cs file and search for ContentPanel's BackColor property. If you would like you can manually change the backColor in the constructor of your application's form after the call of the InitializeComponent method. There you can set the ContentPanel's BackColor property without any problems.
Please write me back if I could be of further help.
That would tell me that the color should be LightSteelBlue when run, but I still see white.
If I copy that line to my Form.Load sub,
the color shows as expected. Why didn't it work with just the code in the Form.Designer.cs...I shouldn't have to set the initial color twice.
0
Boyko Markov
Telerik team
answered on 16 May 2008, 02:23 PM
Hello Bob,
I'm still investigating this issue, Bob. It is great that there is an easy workaround for this case. Have you tried to put the line which sets the ContentPanel's BackColor after the call of EndInit method in the designer? We load the themes there and if the theme has predefined backcolor for the contentPanel it would be set on the EndInit call, too. This method is after the serialized backColor of the contentPanel and will set the backcolor again.