Table of Contents

Class HorizontalUniformStack

Namespace
Xui.Core.UI
Assembly
Xui.Core.dll

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

public class HorizontalUniformStack : ViewCollection, ILayerHost, IServiceProvider
Inheritance
HorizontalUniformStack
Implements
Inherited Members
Extension Methods

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)

Positions children within the border-edge rectangle. Frame assignment and alignment offset are handled by ArrangeShell(ref LayoutGuide).

protected override void ArrangeCore(Rect rect, IMeasureContext context)

Parameters

rect Rect
context IMeasureContext

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.