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. Image for the cookie policy date
close icon

DockingManager: Custom CaptionBackground PER Caption

Dockingmanager1.InactiveCaptionBackground can be globally set for all docked controls.

Is it possible to set a specific control's docking area's background ?

Something like dockingManger1.SetCaptionBackground(control)?

Also, is setting custom floating captions coming any time soon?


1 Reply

J. J.Nagarajan Syncfusion Team October 22, 2007 11:15 PM UTC

Hi ERobishaw ,

Thanks for your interest in Syncfusion products.

You can set caption background color for particular control . You have to handle ProvideGraphicsItems event. Please use the following code snippet.

[C#]

private void dockingManager1_ProvideGraphicsItems(object sender, Syncfusion.Windows.Forms.Tools.ProvideGraphicsItemsEventArgs arg)
{
if(arg.Control is Panel)
arg.CaptionBackground = Brushes.YellowGreen;
if (arg.Control is RichTextBox)
arg.CaptionBackground = Brushes.Red;
}

When the control is in floating state the dockhost control will be hosted in a floating form and the floating form caption will be same like the owner form of the floating form. Present architecture of docking manager is not supporting customization of floating form caption.

Please let me know if this helps you.

Regards,
Nagaraj

Loader.
Live Chat Icon For mobile
Up arrow icon