RadForm and Theme

2 posts, 0 answers
  1. vbocanegra
    vbocanegra avatar
    19 posts
    Member since:
    Mar 2006

    Posted 08 Jan 2009 Link to this post

    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
  2. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 10 Jan 2009 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top