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.v24.1.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>

Horizontal Stack Layout

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

Vertical Stack Layout

See Also