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

Visual Style Builder and DockingManager

2 Answers 91 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Antony
Top achievements
Rank 1
Antony asked on 15 Jul 2009, 12:48 PM
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 Answers, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 17 Jul 2009, 10:19 AM
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.
0
Antony
Top achievements
Rank 1
answered on 17 Jul 2009, 10:48 AM
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
Tags
Dock
Asked by
Antony
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Antony
Top achievements
Rank 1
Share this question
or