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.
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
Post a Comment