This is a migrated thread and some comments may be shown as answers.

Change color of a ribbonTab (DropDown)

3 Answers 103 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Dominik
Top achievements
Rank 1
Dominik asked on 04 Dec 2019, 03:07 PM

Hi

How is it possible to change the backcolor of a ribbonTab if it's drop-downed.

I tried to change the following colors:

     

3 Answers, 1 is accepted

Sort by
0
Dominik
Top achievements
Rank 1
answered on 04 Dec 2019, 03:09 PM

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

0
Accepted
Nadya | Tech Support Engineer
Telerik team
answered on 09 Dec 2019, 08:51 AM

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Dominik
Top achievements
Rank 1
answered on 09 Dec 2019, 09:29 AM

Hi Nadya,

Thank you very much. This is exactly what I was looking for.

Kind Regards,

Dominik

Tags
RibbonBar
Asked by
Dominik
Top achievements
Rank 1
Answers by
Dominik
Top achievements
Rank 1
Nadya | Tech Support Engineer
Telerik team
Share this question
or