Exercise 1: Customizing Office with Ribbons and Backstage
Backstage is a perfect place to put UI elements that take up space but are not necessary when actively editing the document. In this case you will be using Backstage and a Ribbon together to create multiple parts of a complete add-in.
Task 1 – Add Export Backstage tab
In this first task, you will create a new Backstage tab named Export to manage the quick export functionality.
Task 2 – Connect Backstage tab to document properties
In this task, you will connect the controls in the Export tab to the CustomDocumentProperties object in the active document. This will allow the state of the controls to be persisted in the document and loaded when the document is loaded later.
Task 3 – Add quick export buttons to the Home ribbon tab
In this task, you will add a Quick Export ribbon button to the Home ribbon tab. It will tie into the same functionality as the buttons on Backstage.
Exercise 1 Verification
In order to verify that you have correctly performed all steps in the above exercise, proceed as follows:
Test the Add-in
Test your add-in to confirm that the export ribbon and backstage buttons work as expected.