Skip to main content
Bar

BarStaticItem.ShowImageInToolbar Property

Gets or sets whether to display the item’s image when the item is positioned in a RibbonQuickAccessToolbar or page header.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(true)]
public virtual bool ShowImageInToolbar { get; set; }

Property Value

Type Default Description
Boolean true

true to always display the item’s image; false to hide the image when the item is positioned in a RibbonQuickAccessToolbar or page header.

Remarks

Use the ShowImageInToolbar property to temporarily hide an item’s image when the item (a bar item link) is displayed in a Quick Access Toolbar or page header.

Show Image in Toolbar - WinForms Ribbon Control

/* Temporarily hides a bar item's image when the bar item is displayed
 * in the Quick Access Toolbar or page header.
 */
barStaticItemB.ShowImageInToolbar = false;
barStaticItemC.ShowImageInToolbar = false;

The Ribbon Control displays the default icon/image for a bar item without a specified image when it is displayed in the Quick Access Toolbar or page header.

Show Default Image in Toolbar - WinForms Ribbon Control

Use the ImageOptions property to specify an image(s) and its display settings.

See Also