문제

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