Profile Picture

NRibbonControl - Visual Designer

Posted By Ashley Davy 4 Months Ago
Author
Message
Ashley Davy
Question Posted 4 Months Ago
View Quick Profile
Forum Newbie

Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: Forum Members
Last Active: 2 Months Ago
Posts: 18, Visits: 65
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.

Thanks,
Ashley


 https://www.nevron.com/forum/uploads/images/9611b747-d6c9-42b9-974e-1f3a.png

Nevron Support
Posted 4 Months Ago
View Quick Profile
Supreme Being

Supreme Being (3,904 reputation)Supreme Being (3,904 reputation)Supreme Being (3,904 reputation)Supreme Being (3,904 reputation)Supreme Being (3,904 reputation)Supreme Being (3,904 reputation)Supreme Being (3,904 reputation)Supreme Being (3,904 reputation)Supreme Being (3,904 reputation)

Group: Forum Members
Last Active: 2 Weeks Ago
Posts: 2,878, Visits: 3,040
Hello,

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:
http://helpopenvision.nevron.com/#Ribbon-Overview.html

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
https://www.nevron.com/forum/uploads/images/f8a9396d-8093-425f-aad0-7877.png

2. Set the text of the label - for example in the screenshot below the text is set to "Tab 1"
https://www.nevron.com/forum/uploads/images/07772ed8-5fb5-49b5-b314-3d32.png


Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic