Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

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

DxButton.RenderStyleMode Property

Specifies the button’s color filling type.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(ButtonRenderStyleMode.Contained)]
[Parameter]
public ButtonRenderStyleMode RenderStyleMode { get; set; }

#Property Value

Type Default Description
ButtonRenderStyleMode Contained

A ButtonRenderStyleMode enumeration value.

Available values:

Name Description
Contained

The button is filled with the style color.

Outline

The button’s text and borders are colored.

Text

The button’s text is colored.

#Remarks

Use the following properties to control <DxButton>‘s style:

  • RenderStyle — Specifies the button’s predefined style.
  • RenderStyleMode — Specifies the button’s color filling type.
Razor
<DxButton RenderStyle="ButtonRenderStyle.Primary" RenderStyleMode="ButtonRenderStyleMode.Contained" Text="Primary" />

Button

Run Demo: Button — Styles

See Also