This is a migrated thread and some comments may be shown as answers.

RadForm and Theme

1 Answer 221 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
vbocanegra
Top achievements
Rank 2
vbocanegra asked on 08 Jan 2009, 11:21 PM
Hi,

I tried to customized a RadForm theme. I selected "office2007Black" by the theme property and after i changed values to the formelements property. For example I cut image from iconprimitive, i changed color from titleprimitive.The UI seems updated during the IDE, but, when come to run time, it will load back the original default theme. Please advice.

Thanks

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 10 Jan 2009, 12:06 PM
Hello rafaelSC,

Thank you for the question.

Regarding the IconPrimitive, we have a known issue with serializing the properties for RadForm. This issue will be addressed in one of our next versions. For the time being, please place the following code snippet in the form's constructor:
this.FormElement.TitleBar.IconPrimitive.Image = null;   

As to the colors for the titlebar portion, currently there is no option to set them throught the property grid. Therefore, consider using the code snippet below:
((FillPrimitive)this.FormElement.TitleBar.Children[0]).BackColor = Color.Yellow;     
((FillPrimitive)this.FormElement.TitleBar.Children[0]).BackColor2 = Color.Red; 

If you have additional questions, feel free to contact me.

Regards,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Themes and Visual Style Builder
Asked by
vbocanegra
Top achievements
Rank 2
Answers by
Nikolay
Telerik team
Share this question
or