c# 4.0 - How to bind list items to wrap panel in windows phone -
how bind list items wrap panel, got result below:
1 2 3 4
but want this:
1 2 3 4 5 6 7 8
<listbox.itemtemplate> <datatemplate> <stackpanel orientation="vertical"> <image source="{binding icon}" stretch="uniform" horizontalalignment="center" height="50" width="100"/> <textblock text="{binding name}" textwrapping="wrap" foreground="white" fontsize="22" height="30" margin="10" width="110" textalignment="center"/> </stackpanel> </datatemplate> </listbox.itemtemplate> <listbox.itemspanel> <itemspaneltemplate> <controls:wrappanel/> </itemspaneltemplate> </listbox.itemspanel> </listbox>
Comments
Post a Comment