Thank you for contacting us. Unfortunately, at the moment there is no way to set the BackColor of the ToolWindowCaption at run time. This issue will be addressed in the future releases. The only way to customize the appearance of RadDock is through themes. Since RadDock is a new control, it is not supported in Visual Style Builder yet. At the same time our team did not managed to prepare help articles to show how to customize the themes for RadDock. The only approach for creating a new theme is modifying the xml file of an already created theme. So it seems that creating a theme for RadDock is not an easy task. We apologize for the inconvenience. Our team will provide mechanism for easy customizing themes for RadDock in near future.
Nevertheless, I have prepared for you a sample project that applies the Sapphire theme for the RadDock control. It demonstrates how to incorporate xml files in your application and how to apply the theme to your RadDock. Please, note that I have set the BackColor of the ToolWindowCaption TitleFill, so now the ToolWindow will be always painted in the color (219, 198, 201).
I hope this is helpful. If you have further questions, do not hesitate to contact me back.
I think i have some solution for more than the Colors.
With this code i can keep all the parameters as i designed, like: Image, backColors, SplitterBackColor, ForColor, RightToLeft , Fonts, the 4 BackColors, BorderBackColor... etc as you can see.
I am sure that telerik Group can make the code look better and work even better.
But , i have a problem, this code dos not work if i click on the hide button .(it's Collapse) .
Please help me with this.
//foreach (RadElement c in window.TabStripItem.Children)
answered on 08 Feb 2010, 04:19 PM
Hi Tzhai Gal,
The custom colors are not applied to the titlebar part of the DockTabStrip, because when a ToolWindow is in AutoHide mode, it is hosted by an AutoHideTabStrip, but not by a ToolTabStrip. However, your code concerns the strcture of ToolTabStrip only. It would be better if you set the desired colors using the CaptionElement property:
FillPrimitive fill = (FillPrimitive)((ToolTabStrip)window.DockTabStrip).CaptionElement.Children;