windows phone 7 - how to scroll textblok horizontally in wp7 -


i'm trying scroll large textblock horizontally. tried couple of following way. none of works me. can tell me how it?

try 1:-

             <canvas x:name="mycanvas" height="590" horizontalalignment="left" margin="10,10,0,0" verticalalignment="top" width="700">             <scrollviewer x:name="sv" canvas.left="1" canvas.top="520" horizontalscrollbarvisibility="auto">                 <textblock canvas.left="2" canvas.top="522" height="62" name="textblock1" text="textblocktextblocktextblocktextblocktextblocktextblock111111222222" width="590" />             </scrollviewer>         </canvas> 

try 2:-

          <canvas x:name="mycanvas" height="590" horizontalalignment="left" margin="10,10,0,0" verticalalignment="top" width="700">             <stackpanel orientation="horizontal" canvas.left="1" canvas.top="520" height="100" name="stackpanel1" width="635">             <scrollviewer x:name="sv" margin="1,1,1,1" horizontalscrollbarvisibility="auto">                 <textblock canvas.left="2" canvas.top="522" height="62" name="textblock1" text="textblocktextblocktextblocktextblocktextblocktextblock111111222222" width="590" />             </scrollviewer>             </stackpanel> 

try 3:-

            <grid canvas.left="1" canvas.top="500" height="200" name="grid1" width="640">                 <stackpanel orientation="horizontal" canvas.left="1" canvas.top="500" height="100" name="stackpanel1" width="635">                  <scrollviewer x:name="sv" margin="1,1,1,1" horizontalscrollbarvisibility="auto">                     <textblock canvas.left="2" canvas.top="500" height="62" name="textblock1" text="textblocktextblocktextblocktextblocktextblocktextblock111111222222" width="590" />                 </scrollviewer>                 </stackpanel>             </grid> 

<grid x:name="layoutroot" background="transparent">     <scrollviewer horizontalscrollbarvisibility="visible">         <textblock width="1000" height="500" textwrapping="wrap" text="asasdgasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf" />     </scrollviewer> </grid> 

if understood correctly should solve problem.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -