Skip to main content

Microsoft Silverlight

Answered Question About the length of Line ObjectRSS Feed

(0)

tommy_xu
tommy_xu

Member

Member

8 points

10 Posts

About the length of Line Object

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 Luo - MSFT
Yi-Lun L...

All-Star

All-Star

25052 points

2,747 Posts

Re: About the length of Line Object

Hello, this is a known issue that we're tracking. But why do you need such a long line?

shanaolanxing - I'll transfer to the Windows Azure team, and will have limited time to participate in the Silverlight forum. Apologize if I don't answer your questions in time.

tommy_xu
tommy_xu

Member

Member

8 points

10 Posts

Re: About the length of Line Object

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

Yi-Lun Luo - MSFT
Yi-Lun L...

All-Star

All-Star

25052 points

2,747 Posts

Answered Question

Re: Re: About the length of Line Object

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...

shanaolanxing - I'll transfer to the Windows Azure team, and will have limited time to participate in the Silverlight forum. Apologize if I don't answer your questions in time.
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities