maui
maui copied to clipboard
VisualElement.OnMeasure currently routes to some inconsistent logic compared to OnMeasureOverride
Description
VE.OnMeasure follows this path
Which calls this
It should probably call this in both places of the OnMeasure override
The checks on the constraints of "0" also is going to cause inconsistent behavior. MAUI treats zero as zero.
We should review all the measure code inside VisualElement and just force everything to route to the MAUI paths.
Right now we hit a lot of inconsistent behavior because
button.Measure and (button as IView).Measure
Do different things.
we should make it so those both do the same thing and then if users need to switch back to old behavior they can via a switch.