DxMenuItem.Visible Property

Specifies whether the menu item is visible.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v20.2.dll

Declaration

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

Property Value

Type Default Description
Boolean

true

true if the item is visible; otherwise, false.

Remarks

To hide a menu item, set Visible to false.

<DxMenu>
    <Items>
        <DxMenuItem Text="Products" IconCssClass="oi oi-layers">
            <Items>
                <DxMenuItem Text="Subscriptions / Packs" />
                <DxMenuItem Text=".NET Windows Forms Components" />
                <DxMenuItem Text="Reporting / Printing Suites" />
                <DxMenuItem Text="VCL Components and Tools" />
                <DxMenuItem Text="ASP.NET Components" Visible="false"/>
            </Items>
        </DxMenuItem>
    </Items>
</DxMenu>

Hide Menu Item

See Also