Content panel backcolor

3 posts, 0 answers
  1. Mojtaba
    Mojtaba avatar
    32 posts
    Member since:
    Feb 2009

    Posted 02 Mar 2009 Link to this post

    I decided to add radTreeView to radGroupElement so I Change EnableHostControllerMode to True and then the backColor of content is changed. I try to set backColor of content to transparent, but when I run from, the color was white.
    after that I set backColor of content to custom color(Red,Blue,....),but when I run from, the color was white.
    In fact I want change EnableHostControllerMode without any affect on color.
    any idea??


  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 02 Mar 2009 Link to this post

    Hi Mojtaba,

    I suggest setting the BackColor property of the ContentPanel in code after the InitilizeComponent() method is called in your application's form. I think the issue comes from serialization/deserialization of the applied theme. Another thing you can do is to modify the designer generated code by locating the serialized lines where you set the BackColor property and moving these settings at the bottom of the method after the EndInit method calls where the theme is applied. I have tested it and it works fine.

    I hope this helps.

    Please let me know if you need more assistance.


    Greetings,
    Boyko Markov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Mojtaba
    Mojtaba avatar
    32 posts
    Member since:
    Feb 2009

    Posted 04 Mar 2009 Link to this post

    Hi Boyko,

    Thank you for your reply. I set BackColor after InitialaizeComponent() and it works.

    Best Regards.
Back to Top