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

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -