how to refresh teechart in silverlight?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
changyj
Newbie
Newbie
Posts: 9
Joined: Thu Aug 12, 2010 12:00 am

how to refresh teechart in silverlight?

Post by changyj » Fri Aug 13, 2010 3:24 am

how to refresh teechart in silverlight?

changyj
Newbie
Newbie
Posts: 9
Joined: Thu Aug 12, 2010 12:00 am

Re: how to refresh teechart in silverlight?

Post by changyj » Fri Aug 13, 2010 3:28 am

can't find "Teechart.refresh()" in SL,
we alway use this function refresh teechart in VCL

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: how to refresh teechart in silverlight?

Post by Sandra » Fri Aug 13, 2010 12:08 pm

Hello changyj ,


If you want to refresh Chart using Silverlight, I recommend that use property Invalidate () of Chart, as next line:

Code: Select all

tChart1.Invalidate(); 
I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

changyj
Newbie
Newbie
Posts: 9
Joined: Thu Aug 12, 2010 12:00 am

Re: how to refresh teechart in silverlight?

Post by changyj » Fri Aug 13, 2010 2:28 pm

what about "autorepaint = true"?

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: how to refresh teechart in silverlight?

Post by Sandra » Mon Aug 16, 2010 8:23 am

Hello changyj,
what about "autorepaint = true"?
autorepaint property of chart is true by default and usually is deactivated when you populate series with many points or chart with many series, because don't repaint every time that you add a point in series or new series in the chart. Therefore, if you want refresh chart with TeeChartSilverlight, you need use property Invalidate() of Chart.

I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

changyj
Newbie
Newbie
Posts: 9
Joined: Thu Aug 12, 2010 12:00 am

Re: how to refresh teechart in silverlight?

Post by changyj » Thu Aug 19, 2010 3:28 am

ths!

Post Reply