Examples for BeginUpdate & EndUpdate?

Gauge for WPF Forum

Posted 10 years ago by David Bagby - Calypso Ventures, Inc.
Version: 14.1.0602
Avatar

I'm having some performance issues with Gauges - I have several gauges that have 10-12 pointer needles each along with some pointer markers. They all get updated pointer values every 50ms.  Right now I'm doing the value updates sequentially... which has turned out to be too slow. 

So in looking around, I found the BeginUpdate and EndUpdate in the DeferrableObservableCollection<(Of <(<'T>)>)> ..

But I've not found any more explaination other than the method names - and no examples of their use.

I'm thinking that maybe I should be doing something like

BeginUpdate()

set all the new pointer values

EndUpdate()

to cut down the graphic update overhead.

Can you point me to some more info about these methods?

Dave

Comments (1)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi David,

Yes, you got it.  Just call BeginUpdate(), do updates, and then EndUpdate().  At that point, the collection raises the collection change events instead of doing them after each individual update.


Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.