StackPanel.

MeasureOverride(Size) Method

Summary

General StackPanel layout behavior is to grow unbounded in the "stacking" direction (Size To Content). Children in this dimension are encouraged to be as large as they like. In the other dimension, StackPanel will assume the maximum size of its children.
Namespace
Avalonia.Controls
Containing Type
StackPanel

Syntax

protected override Size MeasureOverride(Size availableSize)

Parameters

Name Type Description
availableSize Size Constraint

Return Value

Type Description
Size Desired size