Back to Devexpress

CommandButton Class

wpf-devexpress-dot-xpf-dot-windowsui-5749a514.md

latest3.1 KB
Original Source

CommandButton Class

Represents a round button displaying an icon in the outline.

Namespace : DevExpress.Xpf.WindowsUI

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

NuGet Package : DevExpress.Wpf.Controls

Declaration

csharp
[DXLicenseWpf]
public class CommandButton :
    Button
vb
<DXLicenseWpf>
Public Class CommandButton
    Inherits 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.

Inheritance

Show 13 items

Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control ContentControl ButtonBase Button CommandButton AppBarButton

AppBarToggleButton

See Also

CommandButton Members

DevExpress.Xpf.WindowsUI Namespace