Back to Devexpress

CommandButton.GlyphHeight Property

wpf-devexpress-dot-xpf-dot-windowsui-dot-commandbutton-983a4f6c.md

latest2.7 KB
Original Source

CommandButton.GlyphHeight Property

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

Namespace : DevExpress.Xpf.WindowsUI

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

NuGet Package : DevExpress.Wpf.Controls

Declaration

csharp
public double GlyphHeight { get; set; }
vb
Public Property GlyphHeight As Double

Property Value

TypeDescription
Double

A Double value that specifies the height, 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 GlyphHeight and CommandButton.GlyphWidth 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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GlyphHeight 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.

wpf-appbar-display-windows-10-top-bottom-menu/CS/AppBarExample/MainWindow.xaml#L31

xml
<Setter Property="AllowGlyphTheming" Value="True" />
    <Setter Property="GlyphHeight" Value="24" />
</Style>

See Also

GlyphWidth

GlyphStretch

Glyph

CommandButton Class

CommandButton Members

DevExpress.Xpf.WindowsUI Namespace