I'm trying to use FluidKits ElementFlow-control in my application, but get an exception in the MeasureOverride method of ElementFlow.
Layout measurement override of element 'FluidKit.Controls.ElementFlow' should not return PositiveInfinity as its DesiredSize, even if Infinity is passed in as available size.
In the sample application following FluidKit everything goes alright. When MeasureOverride gets called, the availableSize-struct is initialized with the bounds of the control, but in my application it comes with INF for both width and height.
I have tried to find whats different between the sample and my app, but both is a window with a grid with a listbox who uses the ElementFlow for ItemsPanel.
I have found others struggling with the same exception, but I have not found any solution to it, other than giving the listbox an explicit size. But I don't want to give it a size, I want the grid to manage its layout.
Any suggestions?