WindowBase.

MeasureCore(Size) Method

Summary

Overrides the core measure logic for windows.
Namespace
Avalonia.Controls
Containing Type
WindowBase

Syntax

protected override Size MeasureCore(Size availableSize)

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.

Parameters

Name Type Description
availableSize Size The available size.

Return Value

Type Description
Size The measured size.