maui-404688-layouts-stack-layout.md
The DXStackLayout control aligns its child controls in a single line vertically or horizontally.
The following example adds a DXStackLayout to a page and adds three child items:
<dx:DXStackLayout Orientation="Vertical" ItemAlignment="Center" ItemSpacing="10">
<views:ChannelsDonutView .../>
<dx:DXButton Style="{StaticResource cardButtonStyle}" HeightRequest="100" ...>
<!--...-->
</dx:DXButton>
<dx:DXButton x:Name="pageviewsItem" Style="{StaticResource cardButtonStyle}" HeightRequest="250" ...>
<!--...-->
</dx:DXButton>
</dx:DXStackLayout>
The following list contains properties specific to the DXStackLayout control:
ItemSpacingSets the amount of space between DXStackLayout child elements.ItemAlignment
Specifies how the DXStackLayout control aligns its child items.
Sets whether child controls are positioned horizontally or vertically.