I have a Silverlight 2 application that has a “Loading Data…” message that contains an animation. When the web service returns the data and the data is loading in to an observable collection — the animation freezes (this can be for for several seconds while the data is loading and give the impression that something moght be wrong.)
The observable collection that is databound to an items control in a view.
I assume what is happening is when the data is being added to the observable collection the visual tree is being built for the databound control – which happens on the UI thread.
Is there anyway for me to lower the priority of the data loading so the animation on the ui thread can continue — even when there is a ton of data work being done on the UI thread?
thanks
Michael
I don’t know if you got the answer for this or not but here i go.
Try using a BackgroudWorker to put the heavy duty instructions in there.
Here is a very good example: http://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker.aspx
Let me know if you have any issues, or let me know if you already solved this problem.