Table of Contents

Class HorizontalStack

Namespace
Xui.Core.UI
Assembly
Xui.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, ILayerHost, IServiceProvider
Inheritance
HorizontalStack
Implements
Inherited Members
Extension Methods

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)

Returns the desired border-edge size given the available border-edge space. Margin, min/max clamping, and fixed-size short-circuit are handled by MeasureShell(ref LayoutGuide).

protected override Size MeasureCore(Size availableBorderEdgeSize, IMeasureContext context)

Parameters

availableBorderEdgeSize Size
context IMeasureContext

Returns

Size