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

DXButton Members

The button control.

Constructors

Name Description
DXButton() Initializes a new instance of the DXButton class.

Fields

Name Description
CommandParameterProperty static Identifies the CommandParameter dependency property.
CommandProperty static Identifies the Command dependency property.
ContentProperty static Identifies the Content dependency property.
ContentTemplateProperty static Identifies the ContentTemplate dependency property.
ContentTemplateSelectorProperty static Identifies the ContentTemplateSelector dependency property.
IconHeightProperty static Identifies the IconHeight dependency property.
IconPlacementProperty static Identifies the IconPlacement dependency property.
IconProperty static Identifies the Icon dependency property.
IconSpacingProperty static Identifies the IconSpacing dependency property.
IconTemplateProperty static Identifies the IconTemplate dependency property.
IconWidthProperty static Identifies the IconWidth dependency property.
ShowContentProperty static Identifies the ShowContent dependency property.
ShowIconProperty static Identifies the ShowIcon dependency property.
StyleSettingsProperty static Identifies the StyleSettings dependency property.

Properties

Name Description
Background Gets or sets a brush that paints the button’s background.
BorderBrush Gets or sets a brush that paints the button’s border.
BorderThickness Gets or sets the thickness of the button’s border.
Command Gets or sets a command that is executed when a user clicks the button. This is a dependency property.
CommandParameter Gets or sets a parameter passed to the Command property. This is a dependency property.
Content Gets or sets the button’s content. This is a dependency property.
ContentTemplate Gets or sets a template that defines the appearance of the button’s content. This is a dependency property.
ContentTemplateSelector Gets or sets an object that chooses the button’s content template based on custom logic. This is a dependency property.
CornerRadius Gets or sets the radius for the button’s corners.
Foreground Gets or sets a brush that paints the button’s foreground.
HorizontalContentAlignment Gets or sets the horizontal alignment of the button’s content.
Icon Gets or sets an icon displayed in the button. This is a dependency property.
IconHeight Gets or sets the height of the button’s icon. This is a dependency property.
IconPlacement Gets or sets the icon’s position within the button. This is a dependency property.
IconSpacing Gets or sets the amount of space between the icon and the button’s content. This is a dependency property.
IconTemplate Gets or sets a template that defines the appearance of the button’s icon. This is a dependency property.
IconWidth Gets or sets the width of the button’s icon. This is a dependency property.
IsEnabled Gets or sets whether users can interact with the button.
Padding Gets or sets the amount of space between the button’s content and borders.
ShowContent Gets or sets whether to display the button’s content. This is a dependency property.
ShowIcon Gets or sets whether to display the button’s icon. This is a dependency property.
StyleSettings Gets or sets style settings applied to the button. This is a dependency property.
VerticalContentAlignment Gets or sets the vertical alignment of the button’s content.

Methods

Name Description
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that represents the current object. Inherited from Object.

Events

Name Description
Click Occurs when a user clicks the button.
See Also