When resizing FluidWrapPanel: InvalidOperationException: Measure Pass
See original GitHub issueHi,
I’m planning to use your excellent FluidWrapPanel as a Grid with a configurable layout of tiles. I wanted to update to the latest version as until now I was on CompositionProToolkit v. 0.7 Now, when I resize my MainWindow, at a certain size I get the following unhandled exception:
System.InvalidOperationException: Measure Pass: Unable to accommodate child in the panel!
at CompositionProToolkit.Controls.FluidWrapPanel.MeasureOverride(Size availableSize)
Messing around with the set child sizes seems to influence the problem, but it does not really help. Also, sometimes when starting up the App, the children don’t get distributed but are stacked at the upper left corner. And when resizing the children sometimes are “fitting” into the grid (e.g. two in a row when using childcontrol.Width = Panel.Width / 2 ) and sometimes they don’t fit. Here’s a little repository for reproducing the problems:
https://github.com/jasonwurzel/FluidWrapProblem
Thank you for your help,
Michael
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (5 by maintainers)
Top GitHub Comments
Hi Michael,
Thanks for reporting this issue. Let me have a look. I shall get back to you.
Regards, Ratish
Closing this issue.