I have WrapPanel and very similar items within it. Maybe WrapPanel is a wrong container, just describing what I have.
I want all items have equal width; minimum width of 120. Also, I want items to stretch, that is the point.
If WrapPanel width is 150 (less than 2*minimum) there will be one column and items' width will be 150.
If WrapPanel width is 350 (less than 3*minimum) there will be two columns and items' width will be 175 (350/2).
If WrapPanel width is 370 (less than 4*minimum) there will be three columns and items' width will be 123 (370/3). It can be also two items of 123 and one of 124, does not really matter.
The question is how can I get this behavior?