Edit this page

Accessing and Customizing Elements

Accessing and customizing elements can be performed either at design time, or at run time. Before proceeding with this topic, it is recommended to get familiar with the visual structure of the RadRibbonForm.

Design time

You can access and modify the style for different elements in RadRibbonForm by using the Element hierarchy editor.

Figure 1: Element hierarchy editor

forms-and-dialogs-ribbonform-accessing-and-customizing-elements 001

Programmatically

You can customize the nested elements at run time as well:

Figure 2: Customize elements

forms-and-dialogs-ribbonform-accessing-and-customizing-elements 002

Customize elements

this.AllowAero = false;
this.RibbonBar.RibbonBarElement.CaptionFill.BackColor = Color.Lime;

Me.AllowAero = False
Me.RibbonBar.RibbonBarElement.CaptionFill.BackColor = Color.Lime