WindowBaseMeasureCore Method

Overrides the core measure logic for windows.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
protected override Size MeasureCore(
	Size availableSize
)

Parameters

availableSize  Size
The available size.

Return Value

Size
The measured size.

Remarks

The layout logic for top-level windows is different than for other controls because they don't have a parent, meaning that many layout properties handled by the default MeasureCore (such as margins and alignment) make no sense.

See Also