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.

change the title color of a docking window

Thread ID:





48714 Sep 3,2006 09:59 AM Sep 4,2006 01:05 PM Windows Forms 4
Tags: Tools
Asked On September 3, 2006 09:59 AM

How can I change the title color of a docking host window of a particular docked control?

For example, if I have docked a ListBox by using the methods of a DockingManager, how can I change the color of the title of the window that is used as the docking host?

Malarvizhi [Syncfusion]
Replied On September 4, 2006 12:35 AM

Hi Mario,

The DockingManager has a event named ProvideGraphicsItems events,helps to customize the caption bar of the docked control window.
The DockingManager.ProvideGraphicsItems events fired whenever a dockable control''s caption needs to be painted.
To change the title color of the Docked control window(ListBox control), you could handle the ProvideGraphicsItems event.

I have attached the sample,please go through that,let me know you need further assistance.



Replied On September 4, 2006 04:49 AM

Thanks you. That works.

However, it would be much easier and more intuitive, if appearance could be fully controlled via properties.

Regards, Mario

Joy K George [Syncfusion]
Replied On September 4, 2006 08:32 AM

Hi Mario,

Thanks for your interest in Syncfusion.
Could you please let us know what are the properties you want to customize?

If you need to have the Graphics object of caption ,please let us know.We are ready to send you a sample.


Replied On September 4, 2006 01:05 PM

Thanks for your assistence.

Regarding the properties, I mean that it would be easier to have a CaptionBackColor property somewhere (of course, the name of the property does not matter).

To be forced to write an event handler just to change a color value is not very intuitive.


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.