Hi,
As a workaround handle the CommandBar''s Paint event to custom paint it instead of its BackColor property.
private void commandBar1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
LinearGradientBrush brush = new LinearGradientBrush(this.commandBar1.Bounds, Color.Yellow, Color.Red, 45, true);
e.Graphics.FillRectangle(brush, this.commandBar1.Bounds.X, this.commandBar1.Bounds.Y, this.commandBar1.Bounds.Width, this.commandBar1.Bounds.Height);
}
Please refer to the
test sample that illustrates this and let me know if this meets your requirements.
Regards,
Guru Patwal
Syncfusion, Inc.