Skip to main content
All docs
V23.2

DxNavigationControlComponent<TModel>.Visible Property

Specifies visibility of Menu.

Namespace: DevExpress.Blazor.Base

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

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

Property Value

Type Default Description
Boolean true

true to display the component; otherwise, false.

Remarks

Set the Visible property to false to hide Menu:

<DxMenu Visible="@IsVisible">
    <Items>
        <DxMenuItem Text="Align Left" />
        <DxMenuItem Text="Align Center" />
        <DxMenuItem Text="Align Right" />
    </Items>
</DxMenu>

@code {
    bool IsVisible = false;
}

To disable the component, set the Enabled property to false.

See Also