Back to Devexpress

DxStackLayout.Orientation Property

blazor-devexpress-dot-blazor-dot-dxstacklayout-cf45271b.md

latest1.7 KB
Original Source

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

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

Property Value

TypeDefaultDescription
OrientationHorizontal

An Orientation enumeration value.

|

Available values:

NameDescription
Horizontal

Sets horizontal orientation.

| | Vertical |

Sets vertical orientation.

|

Remarks

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

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

See Also

DxStackLayout Class

DxStackLayout Members

DevExpress.Blazor Namespace