I am using a RadRibbonForm control, so I hope this is the correct forum.
Could you give me the lines of code to change the background color of the title bar on a RadRibbonForm?
Why, you ask? I would like to change the background color of the title bar when the application is in "Test" mode and connected to our test data (vs. production). I realize this is probably unusual and goes against Microsoft specs for Ribbon Forms, but I want it to be clearly visible to all that the application is connected to test data and not connected to production. My thought was that all forms in the application (the main RadRibbonForm, and various modal dialogs) would have a highlighted title bar when in test mode. Regular production users would only see the "normal" view.
I can easily do this on RadForms like this:
form.FormElement.TitleBar.FillPrimitive.GradientStyle = Telerik.WinControls.GradientStyles.Solid;
form.FormElement.TitleBar.FillPrimitive.BackColor = Color.Yellow;
But I can't find the right property for the RadRibbonForm. I've tried with no avail things like:
this.radRibbonBarMain.RibbonBarElement.RibbonCaption.BackColor = Color.Yellow;
Could you help me out?