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

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -