Skip to main content
Home Forums Silverlight Programming Programming with .NET - General About the length of Line Object
3 replies. Latest Post by Yi-Lun Luo - MSFT on September 3, 2008.
(0)
tommy_xu
Member
8 points
10 Posts
09-01-2008 3:39 AM |
Hi Guys,
Recently,when i use Line object to draw some graph, i found that i won't get the correct result if i wrote the code like this : if i write the code like "<Line X1="100" Y1="50" X2="33000" Y2="50" Stroke="Red" StrokeThickness="2"></Line>, and it was very strange, if i reduced the value of X2 to 30000, it works well, so, some one can help me to expain this??
Thanks.
Yi-Lun L...
All-Star
25052 points
2,747 Posts
09-03-2008 12:34 AM |
Hello, this is a known issue that we're tracking. But why do you need such a long line?
09-03-2008 1:49 AM |
Hi Yi-Lun Luo,
Thanks for your reply, and do you mean that's bug for silverlight?
I'm now doing some scrolling control, and that might need such a long line due to so many points.
Thnaks
09-03-2008 2:31 AM |
Yes, unfortunately this is a bug... If you're using a ScrollViewer, you'll discover another behavior. If you scroll the ScrollViewer horizontally for about 1000px, the line will render fine. So only the beginning part is rendered incorrectly. Until this bug is fixed, the only solution is to overlay a short line on top of the long line...