Question

I'm trying to create a tag cloud control in windows phone. The tags are just styled buttons. A vertically oriented stackpanel currently holds the buttons.

I am looking for an alternate container that can hold the button flexible, i.e. allow buttons to stack horizontally and then move to the next line when they stop fitting in one line. Each button is variable in width.

Any suggestions of the best way to do this? Solutions compatible with Windows Phone 7 please.

Was it helpful?

Solution

So for a control that will allow its children to take up what space they can and then automatically wrap the overflow to the next line(s) the WrapPanel control available in the toolkit makes it a pretty painless and easy chore.

Hope this helps, cheers!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top