DockPanel.

MeasureOverride(Size) Method

Summary

Updates DesiredSize of the DockPanel. Called by parent Control. This is the first pass of layout.
Namespace
Avalonia.Controls
Containing Type
DockPanel

Syntax

protected override Size MeasureOverride(Size constraint)

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.

Parameters

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

Return Value

Type Description
Size The Panel's desired size.