Skip to main content
Bar

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.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