Skip to main content

DXButton Properties

The button control.
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.
See Also