Stack is a container-type control that allows to define the layout of its children controls.
Although the Stack control has a number of different properties, there are three in particular that define the overall layout that the component has:
- Direction: Refers to whether the stacking of children components is horizontal or vertical. By default the Stack control is vertical, but can be turned horizontal by adding
horizontalproperty when using the control.
- Alignment: Refers to how the children controls are aligned inside the container. This is controlled via
- Spacing: Refers to the space that exists between children controls inside the Stack. This is controlled via
Stacks can be nested inside one another in order to be able to configure the layout of the application as desired.
|bool||Defines whether to render Stack children horizontally.|
|bool||Defines whether the Stack should take up 100% of the height of its parent.|
|string||Defines how to align stack children horizontally: |
|string||Defines how to align stack children vertically: |
|string||The minimum stack width.|
|string||The maximum stack width.|
|string||The minimum stack height.|
|string||The maximum stack height.|
|string||A gap between stack child controls.|
|bool||Defines whether Stack children should wrap onto multiple rows or columns when they are about to overflow the size of the Stack.|
|string||Stack background color.|
|string||Border around stack in |
|string||Border of the left side of stack in |
|string||Border of the right side of stack in |
|string||Border of the top side of stack in |
|string||Border of the bottom side of stack in |
|bool||Enable horizontal scrolling if stack contents doesn't fit into stack boundaries.|
|bool||Enable vertical scrolling if stack contents doesn't fit into stack boundaries.|
- Any control - will be rendered in the body of the stack.