3 Answers, 1 is accepted
((Telerik.WinControls.UI.RibbonTabStripElement)(this.radRibbonBar1.GetChildAt(0).GetChildAt(4))).BackColor = System.Drawing.SystemColors.Control;
((Telerik.WinControls.UI.RibbonTab)(this.radRibbonBar1.GetChildAt(0).GetChildAt(4).GetChildAt(0).GetChildAt(0).GetChildAt(0))).BackColor = System.Drawing.SystemColors.Control;
this.ribbonTab1.BackColor = System.Drawing.SystemColors.Control;
But with no effect.
Thank you in Advance
Kind Regards,
Dominik
Hello Dominik,
According to your description and attached picture, it is not clear which is the exact element color that you want to change. I have noticed that you found out how to change the color of the RibbonTab but it seems that this is not what you are looking for. So, I suppose that you want to change the color of the content area which is shown when the drop-down is expanded. If you want to achieve this you should access the ContentArea and set some properties:
this.radRibbonBar1.RibbonBarElement.TabStripElement.ContentArea.DrawFill = true;
this.radRibbonBar1.RibbonBarElement.TabStripElement.ContentArea.GradientStyle = GradientStyles.Solid;
this.radRibbonBar1.RibbonBarElement.TabStripElement.ContentArea.BackColor = Color.LightGreen;
However, if this does not meet your requirement, it would be greatly appreciated if you can provide more information or a picture of what you exact look should be. Thank you in advance for your cooperation and consideration.
I am looking forward to your reply.
Regards,
Nadya
Progress Telerik
Hi Nadya,
Thank you very much. This is exactly what I was looking for.
Kind Regards,
Dominik