Skip to main content

CommandButton Class

Represents a round button displaying an icon in the outline.

Namespace: DevExpress.Xpf.WindowsUI

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

NuGet Package: DevExpress.Wpf.Controls


public class CommandButton :


The CommandButton control is inherited directly from the System.Windows.Controls.Button control. This button displays an icon enclosed with an elliptical outline.

To provide an icon for the CommandButton, use the CommandButton.Glyph property. The CommandButton.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. To paint the icon according to the currently applied theme, set the CommandButton.AllowGlyphTheming property to True.

By default, the button displays an elliptical outline. The CommandButton.EllipseDiameter and CommandButton.StrokeThickness properties allow you to adjust the outline appearance. To hide the outline, set the CommandButton.IsEllipseEnabled property to False.

See Also