Вопрос

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.

Это было полезно?

Решение

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!

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top