Skip to main content

DevExpress v24.1 Update — Your Feedback Matters

Our What's New in v24.1 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 Class

Represents a round button displaying an icon in the outline.

Namespace: DevExpress.Xpf.WindowsUI

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

NuGet Package: DevExpress.Wpf.Controls

#Declaration

public class CommandButton :
    Button

#Remarks

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