Skip to main content
A newer version of this page is available. .

CommandButton.GlyphStretch Property

Gets or sets how the icon is stretched to fill the button. This is a dependency property.

Namespace: DevExpress.Xpf.WindowsUI

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Controls, DevExpress.Wpf.Navigation

Declaration

public Stretch GlyphStretch { get; set; }

Property Value

Type Description
Stretch

A Stretch enumeration value that specifies how the icon is stretched to fill the button. The default is Stretch.Uniform.

Remarks

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

See Also