Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display images in grid view in windows phone 8

I'm getting the images from server. I don't know how many number of images come from server when i request for images. After getting the images i want to display them in Grid View with 3 columns for each row as shown in the below figure. So here the columns are fixed (3). The rows should be changed based on the number of images.

enter image description here

Could you please tell me how to do that in windows phone 8.

like image 767
user2636874 Avatar asked Dec 11 '22 10:12

user2636874


1 Answers

One possibility could be to use a LongListSelector and set the LayoutMode to Grid.

Then you would set the GridCellSize in such a way that only 3 images show up per row (ex. If the screen has width 480 set GridCellSize to 160x160 for 3 square images on each row.)

like image 189
Ergin Babani Avatar answered Jan 08 '23 11:01

Ergin Babani