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.

OnProvideGraphicsItems override not working

Thread ID:





48715 Sep 3,2006 12:05 PM Sep 4,2006 08:22 AM Windows Forms 2
Tags: Tools
Asked On September 3, 2006 12:05 PM

I would like to change the title color of a docked window controlled by a DockingManager.

I have written the below code to achieve the goal but it does not work. The titles of all docked windows are still using the default colors. The override does not seem to get called.

What am I missing?


public class DockingManager : Syncfusion.Windows.Forms.Tools.DockingManager
protected override void OnProvideGraphicsItems(ProvideGraphicsItemsEventArgs arg)
arg.CaptionBackground = new LinearGradientBrush(arg.CaptionBounds,
Color.White, Color.Red, LinearGradientMode.Vertical);



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

Hi Mario,

To change the title color of the Docked control window, you could handle the DockingManager.ProvideGraphicsItems event.No need to customize the DockingManager.ProviderGraphicsItems event.

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



Replied On September 4, 2006 08:22 AM

Thanks, it works.

However, it would be MUCH easier, if appearance could be controlled by setting properties without forcing me to find the correct event in case the only thing I want is to change a controls color :-(


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.