We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Docking Manager

Hi

I'm struggling to change the back colour of the docking manager. Currently i'm using Essential Studio 5.1.0.51. The docking manager has left pane, bottom pane and a content pane. So two splitters which are a windows system colour. The content pane includes three tabs all which i can't seem to re-colour, along with the splitters.

Any help whould be greatly appreciated.

Cheers


1 Reply

AD Administrator Syncfusion Team July 29, 2008 12:56 PM UTC

Hi Alan,

Thank you for your interest in Syncfusion Products.

You can use the following code for changing the splitter color of docked control.

[C#]

this.dockingManager1.VisualStyle = VisualStyle.Default;

foreach (DockControllerBase dcb in dockingManager1.DockAreaControllers)
{
if (dcb is DragSplitterController)
{
DragSplitterController dsc = (dcb as DragSplitterController);
DragSplitter ds = (DragSplitter)dcb.HostControl;
ds.BackColor = System.Drawing.Color.Green;
}
}


You can change the caption background using dockingManager1_ProvideGraphicsItems event handler.
Please refer the below code snippet.

[C#]

void dockingManager1_ProvideGraphicsItems(object sender, Syncfusion.Windows.Forms.Tools.ProvideGraphicsItemsEventArgs arg)
{
arg.CaptionBackground = System.Drawing.Brushes.Green;
}


Please refer the below link for more information regarding the ProvideGraphicsItems event handler.
http://www2.syncfusion.com/ug_63/toolswin/ProvideGraphicsItemEvent1.html

Please refer the below sample that demonstrates this.
http://websamples.syncfusion.com//samples/Tools.Windows/F75446/main.htm

Please let me know if this helps you.

Regards,
Hema



Loader.
Live Chat Icon For mobile
Up arrow icon