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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

OnProvideGraphicsItems override not working

Thread ID:

Created:

Updated:

Platform:

Replies:

48715 Sep 3,2006 04:05 PM UTC Sep 4,2006 12:22 PM UTC WinForms 2
loading
Tags: Tools
Mario
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);

base.OnProvideGraphicsItems(arg);
}

}

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.

DockingLabelColor.zip


Regards,
Malarvizhi.

Mario
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 :-(

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.

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

;