Table of Contents

Class HorizontalStack

Namespace
Xui.Core.UI
Assembly
Core.dll

A layout container that arranges its children horizontally from left to right.

Each child is measured with unconstrained width and a constrained height. The container expands to fit the combined width of all children.

public class HorizontalStack : ViewCollection
Inheritance
HorizontalStack
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 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.