Table of Contents

Class HorizontalUniformStack

Namespace
Xui.Core.UI
Assembly
Core.dll

A layout container that arranges its children in a horizontal stack, assigning each child the same width.

public class HorizontalUniformStack : ViewCollection
Inheritance
HorizontalUniformStack
Inherited Members

Remarks

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

If the width is unconstrained (infinite), the container measures each child to determine the maximum width, and assigns that uniform width to all columns.

The height of the container is based on the tallest child.

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)

Measures the desired size of this layout container and its children, based on the available space provided by the parent.

protected override Size MeasureCore(Size availableBorderEdgeSize, IMeasureContext context)

Parameters

availableBorderEdgeSize Size

The space available for layout, excluding padding and borders.

context IMeasureContext

Returns

Size

The desired size of this container based on its layout strategy.