Use the UniformGrid it's made for this very purpose.
Up vote 0 down vote favorite share g+ share fb share tw.
I'm using a wrap panel to show several user controls. All of the user controls have a different height and width. I'd like to arrange the items as maximum 2 items by row, I mean: | Item1 | Item2 | | Item3 | Item4 | | Item5 | Item5 | I say this becase, when the user expand the window, the items allocate in another positions and it looks like a mess.
C# wpf xaml usercontrols wrappanel link|improve this question edited Aug 26 '11 at 20:32Meleak23.2k41861 asked Aug 26 '11 at 20:04Darf4206 65% accept rate.
Did you try setting the . MaxWidth property? – SpikeX Aug 26 '11 at 20:06 But how MaxWidth can help me?
I'll have to get the width user control and multiply for 2. Well, I'm not sure if that is possible – Darf Aug 26 '11 at 20:12.
1 This is what you need. – SpikeX Aug 26 '11 at 20:13 +1 - Uniform Grid is the right tool for the job. – Rhyous Aug 27 '11 at 3:13.
Put the WrapPanel in a ListBox, msmvps.com/blogs/theproblemsolver/archiv..., and then have a MaxWidth.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.