unable to have a set of images in stack panel? I have tried it in Grid also but some issues
i have to make a layout such that images are arranged as follows:
im开发者_开发百科g1 img2 img3
img4 img5 img5
img6 ....
I am using Stack Panel with horizontal orientation.But i can only see my first row.Is there a way to add more rows to it so that i can see all images.Also how to set border for each image in stack panel? In Grid only one image is shown.I am not able to set row and column for images.Can someone suggest something?
If you were doing non-WP7 development, I'd say you want the WrapPanel from the Silverlight Toolkit. Set Orientation="Horizontal" and you'll have what you want.
However, I'm not sure if that works with WP7 or if there's a library for WP7 that offers that kind of panel. You might give it a try and see what happens.
This is basically how StackPanel works. You could alternatively use a Grid, a Canvas or a vertical StackPanel of Horizontal StackPanels.
An overview here of how they differ and which is good when.
Silverlight Layout System
精彩评论