Skip to main content
All docs
V24.2

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

DxDrawer.Position Property

Specifies where the drawer panel is displayed – to the left or right of the target content.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(DrawerPosition.Left)]
[Parameter]
public DrawerPosition Position { get; set; }

#Property Value

Type Default Description
DrawerPosition Left

The drawer panel position.

Available values:

Name Description Image
Left

Displays the drawer panel at the left edge of the target content area.

Drawer in left position

Right

Displays the drawer panel at the right edge of the target content area.

Drawer in right position

#Remarks

The DxDrawer component can display its panel to the left or right of the target content. Use the Position property to specify the drawer panel position.

Run Demo: Drawer Position and Mode

razor
<DxDrawer IsOpen="IsOpen" Position="DrawerPosition.Right" PanelWidth="20%">
    <BodyTemplate>
        <DxMenu Orientation="Orientation.Vertical">
            <Items>
                <DxMenuItem Text="Home" IconCssClass="menu-icon-home menu-icon" />
                <DxMenuItem Text="Components" IconCssClass="menu-icon-products menu-icon" />
                <DxMenuItem Text="Support" IconCssClass="menu-icon-support menu-icon" />
                <DxMenuItem Text="Contacts" IconCssClass="menu-icon-contacts menu-icon" />
                <DxMenuItem Text="About" IconCssClass="menu-icon-about menu-icon" />
            </Items>
        </DxMenu>
    </BodyTemplate>
    <TargetContent>
        @* Lorem ipsum dolor sit amet, consectetur adipiscing elit ... *@
    </TargetContent>
</DxDrawer>

Drawer with specified position

See Also