Back to Devexpress

DxButton.RenderStyleMode Property

blazor-devexpress-dot-blazor-dot-dxbutton-72d80584.md

latest1.6 KB
Original Source

DxButton.RenderStyleMode Property

Specifies the button’s color filling type.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDefaultDescription
ButtonRenderStyleModeContained

A ButtonRenderStyleMode enumeration value.

|

Available values:

NameDescription
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" />

Run Demo: Button — Styles

See Also

DxButton Class

DxButton Members

DevExpress.Blazor Namespace