Hi all,
I need to create a popup gallery. I'm using the Customize dialog of ToolbarsManager. I can't find a way to add items to the main part of the gallery. When I change its Items property those items are added to the popup that is shown on the click of bottom-most button of the tool.
And one more question. How can I create something like Word -> Home -> Paragraph -> Bullets dropdown? What is that dropped down tool?
Thanks,
Vitaly
Well, it seemed that the items were not added to the main part of the gallery (its preview in the ribbon) but in fact they were added and even shown there, but for some reason the default value of ItemSizeInPreview was set to (-1, -1). After changing it to 60; 60 the items "appeared" in the preview.
And the answer to "one more question". That's popup gallery. The ShowPreviewInRibbon property of the popup gallery should be set to false.
I'm guessing the items did not appear in the preview because there were no images for the items. By default, the text for items will not display in the ribbon preview for the gallery (actually, according to the Office 2007 UI Guidelines, the text is not allowed to ever show in the ribbon preview). So if the text is not displayed and there is no image, the items will take up almost no room. Setting their size to 60,60 just caused them to not auto size based on their contents and to instead use the size you have set.
I too am having no end of trouble displaying things in a popup gallery.
I have added several state buttons to the popup gallery's tools collection but I have no idea how they can be made visible without clicking the drop-down button on the bottom-right of the popup gallery.
I would like to do achieve something similar to the styles gallery in Excel 2010 but where any number of state buttons can be checked/unchecked.
Please help!