Skip to main content

MeasureCore Method

Overrides the core measure logic for windows.

Definition

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

protected override Size MeasureCore(
Size availableSize
)

Parameters

  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

Reference

WindowBase Class
Avalonia.Controls Namespace