Skip to main content
A newer version of this page is available. .

DxMenuItem.Stretched Property

Specify whether to stretch a menu item so that it fills all available space in the menu container.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v22.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public bool? Stretched { get; set; }

Property Value

Type Description
Nullable<Boolean>

true to stretch the item; otherwise, false

Remarks

Use the Stretched property to stretch an individual menu item. To stretch all menu item, use the DxMenu.ItemsStretched property.

Mobile and tablet devices cannot stretch items.

<div class="card w-50">
    <DxMenu Title="DevExpress"
            ItemsPosition="ItemPosition.Center">
        <Items>
            <DxMenuItem Text="Products" IconCssClass="oi oi-layers" />
            <DxMenuItem Text="Support" IconCssClass="oi oi-person" Stretched="true"/>
            <DxMenuItem Text="Documentation" IconCssClass="oi oi-book" />
        </Items>
    </DxMenu>
</div>

Menu

See Also