BeginUpdate on multiple charts at the same time

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
mattmobilemedtek
Posts: 28
Joined: Tue Sep 30, 2014 8:06 pm

BeginUpdate on multiple charts at the same time

Post by mattmobilemedtek » Thu Mar 12, 2015 12:28 am

Hello,

I noticed that you call BeginUpdate and then EndUpdate for each chart on a multi-chart example sequentially.

Example 1.
chart1.BeginUpdate();
chart1.DoStuff();
chart1.EndUpdate();

chart2.BeginUpdate();
chart2.DoStuffToo();
chart2.EndUpdate();


Is there any reason I can't do this...?

Example 2.
chart1.BeginUpdate();
chart2.BeginUpdate();

chart1.DoStuff();
chart2.DoStuff();

chart2.EndUpdate();
chart1.EndUpdate();


Thanks,
Matt

ArctionJari

Re: BeginUpdate on multiple charts at the same time

Post by ArctionJari » Fri Mar 13, 2015 8:51 am

Sure you can call BeginUpdate on all of your charts before setting their properties. It's just a matter of taste. Just remember to call EndUpdate on all charts that you have called BeginUpdate on.

mattmobilemedtek
Posts: 28
Joined: Tue Sep 30, 2014 8:06 pm

Re: BeginUpdate on multiple charts at the same time

Post by mattmobilemedtek » Thu Mar 19, 2015 5:52 pm

Thanks for clearing that up. I was paranoid that that was my problem at the time.

Post Reply