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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

OnProvideGraphicsItems override not working

Thread ID:





48715 Sep 3,2006 04:05 PM UTC Sep 4,2006 12:22 PM UTC WinForms 2
Tags: Tools
Asked On September 3, 2006 04:05 PM UTC

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 04:58 AM UTC

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 12:22 PM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon