Class VerticalStack
A layout container that arranges its children vertically from top to bottom.
Each child is measured with an unconstrained height and is allowed to take up as much vertical space as needed. The container expands to fit the combined height of all children.
public class VerticalStack : ViewCollection
- Inheritance
-
VerticalStack
- Inherited Members
Methods
ArrangeCore(Rect, IMeasureContext)
Performs the layout pass by arranging content and children within the view's border edge box, using the provided rectangle.
protected override void ArrangeCore(Rect rect, IMeasureContext context)
Parameters
rect
RectThe final rectangle (position and size) allocated to this view's border edge box.
context
IMeasureContextThe layout metrics context providing access to platform-specific measurements, text sizing, and pixel snapping utilities.
MeasureCore(Size, IMeasureContext)
Determines the minimum size that this view's border edge box requires, given the maximum available size. Margin is not part of this size.
protected override Size MeasureCore(Size availableBorderEdgeSize, IMeasureContext context)
Parameters
availableBorderEdgeSize
SizeThe maximum size available for the view’s border edge box. This size excludes margins, which are handled by the parent layout.
context
IMeasureContextThe layout metrics context providing access to platform-specific measurements, text sizing, and pixel snapping utilities.
Returns
- Size
The desired size of the border edge box based on content and layout logic.