c# - How to display variable sized items? -


i have list of strings want them clickable , displayed horizontally next each other, if there no space left, container should continue arrange items in next line. please me. as can see, have failed using gridview

you should use wrappanel kind of layout. not available in windows runtime standard controls, here can find implementation it.

usage:

<itemscontrol>     <itemscontrol.itemspanel>         <itemspaneltemplate>             <controls:wrappanel/>         </itemspaneltemplate>     </itemscontrol.itemspanel>     <itemcontrol.items>        <!-- put strings here or use itemtemplate instead -->     </itemcontrol.items>  </itemscontrol> 

Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

sql - MySQL - Finding Empty relations -

linux - gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now -