Adding clickable images in the Office backstage fluent UI XML

I'd like to be able to add a new tab to the PowerPoint backstage and within that tab, add groups/containers to built a custom UI to select thumbnails of PowerPoint templates. I'd like to reproduce something close to the File / New tab view that shows multiple template thumbnails:

PowerPoint Backstage, New
However, after a lot of digging in the backstage model, I can only find the following controls that support [decent sized] images:

<imageControl> problem : doesn't support onAction callback
<task> problem : at the largest size, the image attribute sets an icon at a fixed 64x64 pixels

Open in new window

Is there a way round this to show a "gallery" of clickable images other than having a text based dropdown that when clicked, sets the preview image for the current template? Microsoft state that the gallery control is available in the backstage in this MSDN article but after my digging, it's actually only in the contextMenus section so this appears all I have access to:

customUI, backstage element nodes
LVL 15
Jamie GarrochSenior Technical Consultant at BrightCarbonAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JSRWilsonCommented:
Something like this might work (you will need to experiment a bit)
  <backstage >

    <tab id="Sample_BS_newTab"
         label="New"
         insertBeforeMso="TabPrint"
         title="Available Templates" keytip="N"   >

      <firstColumn >
        <group id="Sample_BS_homeGrp"
               label="DefaultTemplates"   >
          <!--Top Row-->
          <topItems>

            <layoutContainer layoutChildren="horizontal"
                             id="LC"  >

              <button id="Sample_BS_newBLANK"
                      keytip="1"
                      onAction="SampleNEWFILE"
                      screentip="Start a new blank presentation."
                      image="myImage"
                      style="large"
                      label = "New Blank Presentation"
                      isDefinitive="true" />

 <!--ADD MORE BUTTONS-->
  </layoutContainer>
          </topItems>
          <bottomItems >
            <!--No bottom items specified at the moment-->
          </bottomItems>
        </group>
      </firstColumn>
    </tab>

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jamie GarrochSenior Technical Consultant at BrightCarbonAuthor Commented:
Thanks John. This is the test image I have created at 202 x 115 px and included in your XML sample:

Slide thumb
And this is how your XML snippet renders the image to 32 x 32 px:

PowerPoint Backstage customisation
So are you confirming that there is no way to render an image in the backstage with custom dimensions with an onAction callback as per my 202 x 115 example?
JSRWilsonCommented:
AFAIK the only size options are large, normal and borderless. Large is 32x32.

I can see that isn't really going to do what you need but it's my best shot at the moment

As an aside do you have a decent xml editor in visual studio with intellisense? I can maybe talk you through this privately if not.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Jamie GarrochSenior Technical Consultant at BrightCarbonAuthor Commented:
Thanks JSRWilson for confirming that custom-sized images with inAction callbacks are not supported in the backstage.
Jamie GarrochSenior Technical Consultant at BrightCarbonAuthor Commented:
I found an answer JSRWilson. The Hyperlink control renders its image element at the size one creates the image and supports the onAction callback:

<hyperlink id="hyperlink1"
  label="Hyperlink label"
  onAction="OnAction"
  image="slideThumb"
  screentip="Hyperlink screentip"
  supertip="Hyperlink supertip"/>

Open in new window


So this is how it renders my 202 x 115 px slideThumb JPG image:

Backstage Hyperlink element
Notes:
1. The target and onAction attributes are mutually exclusive.
2. The label attribute doesn't appear to render if an image attribute is specified :-(
3. The isDefinitive attribute is not supported by this element :-(
4. The callback signature for the hyperlink element is incorrectly stated in this MSDN article as Sub OnAction(control As IRibbonControl, itemID As String, itemIndex As Integer)
JSRWilsonCommented:
Good find. I confirmed all of your comments (labels) Still a useful technique though. I'm meeting the PowerPoint code team in Seattle in November. If I have time I'll ask what can be done / file a bug.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft PowerPoint

From novice to tech pro — start learning today.