Class HorizontalUniformStack
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
rectRectcontextIMeasureContext
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
availableBorderEdgeSizeSizeThe space available for layout, excluding padding and borders.
contextIMeasureContext
Returns
- Size
The desired size of this container based on its layout strategy.