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.
Unfortunately, activation email could not send to your email. Please try again.

Docking Manager

Thread ID:

Created:

Updated:

Platform:

Replies:

75446 Jul 25,2008 11:10 AM Jul 29,2008 08:56 AM Windows Forms 1
loading
Tags: Tools
Alan Barry
Asked On July 25, 2008 11:10 AM

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


Administrator [Syncfusion]
Replied On July 29, 2008 08:56 AM

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



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;