2

I'm developing a toolbar for a new Word 2010 template (.dotm). In the picture below I'm trying to describe what I want to mimic: the scrollbar-look-a-like element thing which displays available styles (this is original Microsoft Word 2010).

enter image description here

My question regards only the element.

Here is my CustomUI XML:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">

  <ribbon>
    <tabs>
      <tab id="tabESS" label="ESS">
        <!--<tab id="tabESS" label="ESS" insertBeforeMso="TabHome">-->

        <group id="grpExample" label="Styles">

          <!--Which elements should be used here?-->

        </group>


      </tab>
    </tabs>
  </ribbon>
</customUI>

This is driving me crazy, I cant figure out which element Microsoft has used. I've searched everywhere on the net but nothing gives me a clue. Does anyone know which element(s) should be used?

Oliver Salzburg
  • 89,072
  • 65
  • 269
  • 311
Hauns TM
  • 291
  • 3
  • 17

1 Answers1

1

That's "Gallery" control, specifically an InRibbonGallery.

Example XML:

<Group CommandName="cmdInRibbonGalleryGroup" SizeDefinition="OneInRibbonGallery">
  <InRibbonGallery CommandName="cmdInRibbonGallery"
                   MaxColumns="10"
                   MaxColumnsMedium="5"
                   MinColumnsLarge="5"
                   MinColumnsMedium="3"
                   Type="Items">
    <InRibbonGallery.MenuLayout>
      <VerticalMenuLayout Rows="2"
                          Gripper="Vertical"/>
    </InRibbonGallery.MenuLayout>
    <InRibbonGallery.MenuGroups>
      <MenuGroup>
        <Button CommandName="cmdButton1"></Button>
        <Button CommandName="cmdButton2"></Button>
      </MenuGroup>
      <MenuGroup>
        <Button CommandName="cmdButton3"></Button>
      </MenuGroup>
    </InRibbonGallery.MenuGroups>            
  </InRibbonGallery>
</Group>