NRibbonControl - Visual Designer
Print Topic | Close Window

By Ashley Davy - 2 Years Ago
I am trying to use the NRibbonControl to create a menu.  I have found the code example which uses just code to create the menu.  Can you create the same menu using the Edit Ribbon (designer).  In the following image I have added a Tab but I can not see where I can modify any of the properties of a tab such as the display text of the tab.  So the ultimate question is can I build a Ribbon Menu through the designer without using code.

By Nevron Support - 2 Years Ago

The ribbon control is pretty complex control and that is why we recommend you add tab pages, ribbon groups and items to it programmatically via code. Thus you will both get more efficient and easier to maintain code. Nevron Open Vision comes with examples that demonstrates how to add items to a ribbon. You can also take a look at the online documentation topics in the "Ribbon" folder:

Using the WinForms designer is possible, but for such complex controls the WinForms designer does not produce very efficient code and may break at some point in the future which may lead to you loosing your ribbon configuration and items. That is why we do not recommend using the designer for complex controls like the ribbon.

Anyway, the following 2 screenshots demonstrate how to add a label to a ribbon tab header and set its text using the WinForms designer:
1. Add a label as content of the ribbon tab header

2. Set the text of the label - for example in the screenshot below the text is set to "Tab 1"