How to create backstage view similar to "file new"

Add-in Express™ Support Service
That's what is more important than anything else

How to create backstage view similar to "file new"
Need to dynamically insert images into backstage view 
Niels Ziegler




Posts: 49
Joined: 2017-02-03
My customer has a lot of word templates and I would like to implement a backstage view, similar to the file-new view, where the user can select one or manage updates to these files.

I need to gain access to the TopItems group, where I have added a LayoutContainer. In this container I would like to dynamically add ImageControls where I load thumbnails of the available templates. Looking at the methods and properties available when the OnShow() method of the backstage view control is called, I was able to find my controls if I go through the objects like this:

var tab = BackstageView.Controls[0];
var tabGroup = tab.AsBackstageTab.FirstColumn[0].AsBackstageGroup;
var layoutContainer = tabGroup.TopItems[0].AsBackstageLayoutContainer;

But adding a control did not work. I assume because the control would not update automatically or this is not supported. But how is Microsoft doing it then?

Can you please show me a way to achive this?
Posted 03 Feb, 2017 05:27:01 Top
Andrei Smolin


Add-in Express team


Posts: 14106
Joined: 2006-05-11
Hello Niels,

Niels Ziegler writes:
In this container I would like to dynamically add ImageControls


You can't do this on the fly because the Ribbon UI is a static thing almost completely. Instead, you need to manage the visibility and other properties of the ImageControl objects pre-created at design time.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 03 Feb, 2017 05:58:26 Top