Skip to main content

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

CommandButton.GlyphWidth Property

Gets or sets the width of the frame into which the button icon is fitted. This is a dependency property.

Namespace: DevExpress.Xpf.WindowsUI

Assembly: DevExpress.Xpf.Controls.v24.2.dll

NuGet Package: DevExpress.Wpf.Controls

#Declaration

public double GlyphWidth { get; set; }

#Property Value

Type Description
Double

A Double value that specifies the width, in pixels, of the frame into which the icon is fitted.

#Remarks

You can specify the icon for the current button using the CommandButton.Glyph property. The GlyphWidth and CommandButton.GlyphHeight properties specify the dimensions of the frame into which the icon is fitted. The CommandButton.GlyphStretch property specifies how the icon is stretched to fill the frame.

See Also