Back to Devexpress

DxButtonBase.Enabled Property

blazor-devexpress-dot-blazor-dot-dxbuttonbase-899e1622.md

latest1.2 KB
Original Source

DxButtonBase.Enabled Property

Specifies whether the button is enabled.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(true)]
[Parameter]
public bool Enabled { get; set; }

Property Value

TypeDefaultDescription
Booleantrue

false to disable the button; otherwise, true.

|

Remarks

Set the Enabled property to false to disable the button.

razor
<DxButton RenderStyle="ButtonRenderStyle.Primary" Text="Disabled button" Enabled="false" />

To hide the button, set the Visible property to false.

Run Demo: Button

See Also

DxButtonBase Class

DxButtonBase Members

DevExpress.Blazor Namespace