c# - Cannot scroll content horizontal in windows store app -
in application, have stackpanel orientation set 'horizontal'. in stackpanel there 4 images. when try scroll content horizontally, scrolls few pixels , cannot see whole content. when change orientation of stackpanel vertical, can scroll whole content vertical. why isn't possible scroll hotizontally? ideas how can solve problem?
<grid> <scrollviewer> <stackpanel orientation="horizontal" > <canvas margin="120,0,0,0" width="310" height="390"> <image width="310" height="390" source="ms-appx:///assets/image/background_teaser.png"/> </canvas> <canvas margin="120,0,0,0" width="310" height="390"> <image width="310" height="390" source="ms-appx:///assets/image/background_teaser.png"/> </canvas> <canvas margin="120,0,0,0" width="310" height="390"> <image width="310" height="390" source="ms-appx:///assets/image/background_teaser.png"/> </canvas> <canvas margin="120,0,0,0" width="310" height="390"> <image width="310" height="390" source="ms-appx:///assets/image/background_teaser.png"/> </canvas> </stackpanel> </scrollviewer> </grid
horizontal scrolling not enabled per default.
<scrollviewer horizontalscrollmode="auto" horizontalscrollbarvisibility="auto">
Comments
Post a Comment