Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(null)]
[Parameter]
public bool? Stretched { get; set; }

#Property Value

Type Default Description
Nullable<Boolean> null

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.

Razor
<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