I have a C# add-in that I am developing in Visual Studio 2019.
NBWRibbon01.Designer.cs
contains code for the custom ribbon groups and buttons shown below. However, when I launch the Designer for the same custom ribbon in Visual Studio 2019, I get an empty ribbon bar control shown below.
Has anyone encountered this issue? I am guessing that I will need to completely re-create the ribbon bar from scratch.
First of all, make sure the VSTO design-time adapter add-in is enabled in Excel.
Also check out the code-behind files, most probably any of them was edited to ruin the ribbon designer.
The Ribbon designer is good as a starting point in Visual Studio. But it doesn't support all the features that the Fluent UI provides. So, I'd suggest moving to the raw XML markup. You can design the base UI using the ribbon designer in Visual Studio and then export the custom markup to the ribbon XML. Read more about that in the How to: Export a ribbon from the Ribbon Designer to Ribbon XML article.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.