Back to Devexpress

DxButtonBase.Visible Property

blazor-devexpress-dot-blazor-dot-dxbuttonbase-c74dc5cc.md

latest1.2 KB
Original Source

DxButtonBase.Visible Property

Specifies the button’s visibility.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDefaultDescription
Booleantrue

true to show the button; otherwise, false.

|

Remarks

To hide the button, set Visible to false.

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

To restrict user interaction with a button without hiding it, set the Enabled property to false to disable the button.

Run Demo: Button

See Also

DxButtonBase Class

DxButtonBase Members

DevExpress.Blazor Namespace