Hi Artjom,
Custom caption bar can be created using the event ProvideGraphicsItems. It is fired whenever the caption bar is drawn. EventArgs has three properties for custom drawings.
CaptionBackground - used to set background for the caption bar.
CaptionForeground - used to set foreground of the caption bar.
CaptionFont - To set font styles.
private void dockingManager1_ProvideGraphicsItems(object sender, Syncfusion.Windows.Forms.Tools.ProvideGraphicsItemsEventArgs arg)
{
if(arg.IsActiveCaption == true)
{
arg.CaptionBackground = new LinearGradientBrush(arg.CaptionBounds, Color.Lavender , Color.White, (float)0);
arg.CaptionForeground = Color.Red;
arg.CaptionFont = new Font("Arial", 10, FontStyle.Bold);
}
else
{
arg.CaptionBackground = new LinearGradientBrush(arg.CaptionBounds, Color.Bisque, Color.White, (float)0);
arg.CaptionFont = new Font("Arial", 10);
}
}
Herewith I have attached the sample and KB link for your reference.Please go through this and let me know if you have queries.
How to draw a custom caption for docking windows?
CustomCaptionBar.zipThanks,
Murugan P.S