layout - Image alignment issues in databound Pivot control -
i'm using pivot control , binding collection of images it. i'm having problem alignment of photos.
if photos landscape, align @ top, , unable use gesture control anywhere below photo.
if mix of portrait/landscape, images appear ok, until rotate device. portrait images extremely zoomed in, , landscape images located half way down screen.
i'm new wp7 development , layout still pretty foreign me. assistance appreciated. i'm sure has have created basic photo viewer this....
<controls:pivot name="photopivot" loaded="photopivot_loaded" itemssource="{binding _photos}"> <controls:pivot.headertemplate> <datatemplate> <grid height="1" width="1"/> </datatemplate> </controls:pivot.headertemplate> <controls:pivot.itemtemplate> <datatemplate> <image verticalalignment="stretch" horizontalalignment="stretch" source="{binding photo_link}" /> </datatemplate> </controls:pivot.itemtemplate> <controls:pivot.itemcontainerstyle> <style targettype="controls:pivotitem"> <setter property="margin" value="0"/> <setter property="padding" value="0"/> </style> </controls:pivot.itemcontainerstyle> </controls:pivot>
i able solve removing height/width definitions grid in data template , layoutroot grid.
Comments
Post a Comment