DxButton.Visible Property

Specifies the button’s visibility.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

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

Property Value

Type Default Description
Boolean

true

true to show the button; otherwise, false.

Remarks

To hide the button, set Visible to false.

<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