Visual Style Builder and DockingManager

3 posts, 0 answers
  1. Antony
    Antony avatar
    12 posts
    Member since:
    May 2009

    Posted 15 Jul 2009 Link to this post

    Hi there,

    I've been trying this for a couple of days without much success, when using the Visual Style Builder is it possible to alter the tab colours (and shape!) used by the DockingManager docking component?

    At the moment I am trying to style the DockPresenterControl but when I select the individual Tabs and make changes (background color or border color for example) these changes are never reflected in the Design / Preview area.

    If it is not possible with the Visual Style Builder is it possible to make these changes programatically?

    Thanks very much!

    -Antony
  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 17 Jul 2009 Link to this post

    Hello Antony,

    The problem may be related to the Preview the DockPresenterControl in Visual Style Builder. Please save your changed theme from the VSB and try to load it in the docking manager. To change the colors for the fill and border primitives programatically your can use:

    RadElementCollection coll = this.dockPanel1.DockableTab.Children; 
    FillPrimitive fill = coll[0] as FillPrimitive; 
    fill.BackColor = Color.GreenYellow; 
    BorderPrimitive border = coll[1] as BorderPrimitive; 
    border.ForeColor = Color.Red; 

     
    Sincerely yours,
    Julian Benkov
    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. Antony
    Antony avatar
    12 posts
    Member since:
    May 2009

    Posted 17 Jul 2009 Link to this post

    Thanks Julian you actually got in just before I was about to reply! What I did in the end was use VSB to create a theme for the RadTabStrip and then apply this theme to the docking manager, it seemed to work a treat :)

    Thanks again!

    -Antony
Back to Top