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)
- C#
- VB
- F#
protected override Size MeasureOverride(
Size constraint
)
Protected Overrides Function MeasureOverride (
constraint As Size
) As Size
abstract MeasureOverride :
constraint : Size -> Size
override MeasureOverride :
constraint : Size -> Size
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.