Skip to main content

MeasureOverride Method

Updates DesiredSize of the DockPanel. Called by parent Control. This is the first pass of layout.

Definition

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

protected override Size MeasureOverride(
Size constraint
)

Parameters

  Size
Constraint size is an "upper limit" that the return value should not exceed.

Return Value

Size
The Panel's desired size.

Remarks

Children are measured based on their sizing properties and Dock. Each child is allowed to consume all of the space on the side on which it is docked; Left/Right docked children are granted all vertical space for their entire width, and Top/Bottom docked children are granted all horizontal space for their entire height.

See Also

Reference

DockPanel Class
Avalonia.Controls Namespace