You can apply the BarManager.ShowGlyphsInPopupMenus attached property for the following items: Use the BarManager.ShowGlyphsInPopupMenus attached property to display or hide the popup bar item’s glyph. The following example illustrates the bar item glyph size customization capabilities. Specifies the exact width and height of the glyph for items within the RibbonGalleryBarItem.DropDownMenuItems collection. Specifies the exact width and height of the glyph for all bar items within the BarSubItem container. Specifies the exact width and height of the glyph for all bar items within the BarLinkContainerItem container and its descendants. Specifies the exact width and height of the glyph for all bar items within a container that is a BarItemLinkHolderBase descendant.īarLinkContainerItem.SubItemsCustomGlyphSize Specifies the exact width and height of the glyph for all bar items within a container that is the ILinksHolder implementation.īarItemLinkHolderBase.CustomItemsGlyphSize Specifies the exact width and height of the BarItem‘s glyph. Specifies the exact width and height of the BarItemLink‘s glyph. Properties that have the highest precedence are listed first. The following table lists properties that allow you to specify the custom glyph size. To specify a custom glyph size, assign a Size value to one of the CustomGlyphSize properties. If the GlyphSize property is set to Custom, you can set the exact width and height of the bar item’s glyph. The glyph size is specified by the Size value.
In menus, bar items display small glyphs.Ī bar item displays a glyph specified by the BarItem.LargeGlyph property.Ī bar item displays a glyph specified by the BarItem.Glyph property. In toolbars, bar items display large glyphs. The following table lists the available options. The GlyphSize properties must be set to one of the GlyphSize enumeration values. Specifies the glyph size for items within the RibbonGalleryBarItem.DropDownMenuItems collection. Specifies the glyph size for menu items within the BarManager container. Specifies the glyph size for toolbar items within the BarManager container.
Specifies the glyph size for all bar items within the BarSubItem container. Specifies the glyph size for all subitems within the BarLinkContainerItem container and its descendants. Specifies the glyph size for all bar items within a container that is a ToolBarControlBase descendant. Specifies the glyph size for all items within the Bar container. Specifies the glyph size for a specific bar item represented by an instance of BarItem or its descendant. The following table lists properties that allow you to specify the required glyph size for bar items and item containers. If you assign both small and large glyphs to a bar item, you can specify the glyph size explicitly. The following table lists the available options.īar items display a glyph within toolbars.īar items display both content and glyph within menus and ribbon.īar items display both content and glyph. The BarItemDisplayMode property must be set to one of the BarItemDisplayMode enumeration values. Specifies the glyph visibility for all items within the BarContainerControl. Specifies glyph visibility for all items within a container represented by a ToolBarControlBase descendant. Specifies the glyph visibility for all items within the Bar container. Specifies the glyph visibility for an individual bar item represented by a BarItem descendant. Specifies the glyph visibility for an individual bar item link represented by a BarItemLink descendant. The following table lists the properties that control the display mode of bar items. The display mode specified for a child object overrides the display mode of a parent. You can specify the glyph visibility for individual bar items or entire toolbars and menus using the BarItemDisplayMode properties. The following image demonstrates the result.