Overrides the core measure logic for windows.
protected override Size MeasureCore(Size availableSize)
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.
|availableSize||Size||The available size.|
|Size||The measured size.|