Skip to main content

MeasureOverride Method

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.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

protected override Size MeasureOverride(
Size availableSize
)

Parameters

  Size
Constraint

Return Value

Size
Desired size

See Also

Reference

StackPanel Class
Avalonia.Controls Namespace