Skip to main content
A newer version of this page is available.
All docs
V18.2

BackstageButtonItem.Glyph Property

Gets or sets the item’s image. This is a dependency property.

Namespace: DevExpress.Xpf.Ribbon

Assembly: DevExpress.Xpf.Ribbon.v18.2.dll

Declaration

public ImageSource Glyph { get; set; }

Property Value

Type Description
ImageSource

A System.Windows.Media.ImageSource object.

Remarks

Use the Glyph in case you want to set a button item’s picture. Glyph accepts any image file extensions (.jpg, .bmp, .pgn etc). Using a GIF-animated picture will result in displays of only the first frame. Please notice that including an extension to a filename is necessary.

An image is placed inside a container. You can change this container’s properties using the BackstageButtonItem.GlyphContainerStyle or the image properties directly, using BackstageButtonItem.GlyphStyle.

Control images can be automatically substituted for other images based on the app context (the system DPI setting, the application UI culture, paint theme and touch mode availability). See the following topic to learn more:Automatically Choosing Images Based on App Context.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Glyph property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also