Customizing the Ribbon

Ribbon support within an Office project is enabled by adding a ribbon project item to the project. Right-click the project within Solution Explorer and select Add New Item. In the Add New Item dialog box (see Figure 22.5), you see two different ribbon templates available for selection: Ribbon (Visual Designer) and Ribbon (XML). As their names suggest, the Visual Designer template provides you with a what-you-see-is-what-you-get (WYSIWYG) design surface for creating your ribbon customizations. Because this design surface can’t be used to build certain types of more advanced ribbon features, the Ribbon (XML) item template is provided to enable you to handcraft ribbon features in XML. You need to use the Ribbon (XML) item ...

Get Microsoft Visual Studio 2015 Unleashed, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.