.net - Canvas lines getting clipped in windows phone app -


i'm having problem content getting clipped on canvas of windows phone app. here's xaml page reproduces problem:

<phone:phoneapplicationpage      x:class="phoneapp1.mainpage"     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     xmlns:phone="clr-namespace:microsoft.phone.controls;assembly=microsoft.phone"     xmlns:shell="clr-namespace:microsoft.phone.shell;assembly=microsoft.phone"     xmlns:d="http://schemas.microsoft.com/expression/blend/2008"     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"     mc:ignorable="d" d:designwidth="480" d:designheight="768"     fontfamily="{staticresource phonefontfamilynormal}"     fontsize="{staticresource phonefontsizenormal}"     foreground="{staticresource phoneforegroundbrush}"     supportedorientations="portrait" orientation="portrait"     shell:systemtray.isvisible="true">      <grid x:name="layoutroot" >         <scrollviewer  x:name="chartscroller" horizontalscrollbarvisibility="visible"   >             <canvas x:name="chartcanvas" width="4000" height="1000"   >                 <line stroke="red" x1="0" x2="3000" y1="100" y2="100" />                 <line stroke="yellow" x1="0" x2="3500" y1="200" y2="200" />                 <line stroke="blue" x1="0" x2="4000" y1="300" y2="300" />                 <line stroke="green" x1="2800" x2="2800" y1="0" y2="1000" />             </canvas>         </scrollviewer>     </grid>  </phone:phoneapplicationpage> 

and here's screen shot of result:

enter image description here

the problem red, yellow , blue lines seem getting clipped - expect them go further green line horizontally , lengths should different well. can't work out why happening?

any appreciated.

hello @rip have checked problem , find have done fine , there problem line class of windows phone cannot make line of length more 2700 have checked out on device too. can draw 1 more 1 first line ended..just workaround.i have checked windows 8 , wpf every thing working fine.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -