c# - Selectable evenly spaced grid of images -
c# - Selectable evenly spaced grid of images -
i trying produce layout show me grid of images respond user clicks. expected layout 1 of
image 1 image 2 image 3 image 4 image 5 image 6 image 7 image 8 image 9
my current xaml layout
<grid x:name="contentpanel" grid.row="1" margin="12,10,10,10"> <listbox x:name="previewlistbox" horizontalalignment="left" margin="2,10,0,10" width="446"> <listbox.itemspanel> <itemspaneltemplate> <toolkit:wrappanel orientation="horizontal" /> </itemspaneltemplate> </listbox.itemspanel> <listbox.itemtemplate> <datatemplate> <grid horizontalalignment="center"> <grid.columndefinitions> <columndefinition width="120"/> </grid.columndefinitions> <image source="{binding path=firstimgurl}" horizontalalignment="center" /> <textblock text="{binding path=firstimgtitle}" horizontalalignment="center" /> <image source="{binding path=secondimgurl}" horizontalalignment="center" /> <textblock text="{binding path=secondimgtitle}" horizontalalignment="center" /> <image source="{binding path=thirdimgurl}" horizontalalignment="center" /> <textblock text="{binding path=thirdimgtitle}" horizontalalignment="center" /> </grid> </datatemplate> </listbox.itemtemplate> </listbox> </grid>
at nowadays seems items beingness shown lastly inserted items list
item source.
i not sure why trying show 3 images @ 1 time in grid if dont add together rows each item going display on top of each other.
c# windows-phone-7 windows-phone
Comments
Post a Comment