Skip to main content

DxStackLayout.Orientation Property

Specifies how the stack layout’s items are arranged: vertically (in a column) or horizontally (in a row).

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v25.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(Orientation.Horizontal)]
[Parameter]
public Orientation Orientation { get; set; }

Property Value

Type Default Description
Orientation Horizontal

An Orientation enumeration value.

Available values:

Name Description
Horizontal

Sets horizontal orientation.

Vertical

Sets vertical orientation.

Remarks

<DxStackLayout Orientation="Orientation.Horizontal">
    <Items>
        <DxStackLayoutItem>
            @* ... *@
        </DxStackLayoutItem>
        @* ... *@
    </Items>
</DxStackLayout>

Blazor Stack Layout - Horizontal Orientation

<DxStackLayout Orientation="Orientation.Vertical">
    <Items>
        <DxStackLayoutItem>
            @* ... *@
        </DxStackLayoutItem>
        @* ... *@
    </Items>
</DxStackLayout>

Blazor Stack Layout - Vertical Orientation

See Also