uniformgrid

How can we set the Wrap-point for the WrapPanel?

左心房为你撑大大i 提交于 2019-11-26 16:57:03
问题 I have an ItemsControl and I want the data to be entered into two columns. When the User resizes to a width lesser than the second column, the items of the second column must wrap into the first column. Something like a UniformGrid but with wrapping. I have managed to use a WrapPanel to do this. But I am forced to manipulate and hard code the ItemWidth and MaxWidth of the WrapPanel to achieve the two columns thing and the wrapping. This is not a good practice. Is there anyway to set the