torbjorn
torbjorn

Reputation:

WPF ArrangeOverride question

It seems that the final width(or height) passed in to ArrangeOverride method is never less than the desired width (or height) returned from the MeasureOverride method.

Is this always true?

Upvotes: 1

Views: 1430

Answers (1)

Ana Betts
Ana Betts

Reputation: 74654

I believe you can assume that the final size passed in will be less than or equal to the desired size, but not always the exact size. Arrange is after it decides the actual dimensions things will be, so it will generally be actual values (as opposed to Measure where +Inf is common)

Upvotes: 2

Related Questions