Table of Contents

Class VerticalUniformStack

Namespace
Xui.Core.UI
Assembly
Core.dll

A layout container that arranges its children in a vertical stack, giving each child the same height.

public class VerticalUniformStack : ViewCollection
Inheritance
VerticalUniformStack
Inherited Members

Remarks

If the parent provides a constrained height, the container divides the available height equally among all children.

If the height is unconstrained (infinite), the container measures each child to determine the maximum height, and uses that height for all rows.

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 Rect

The final rectangle (position and size) allocated to this view's border edge box.

context IMeasureContext

The 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 Size

The maximum size available for the view’s border edge box. This size excludes margins, which are handled by the parent layout.

context IMeasureContext

The 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.