WPF update binding in a background thread
Posted
by Mark
on Stack Overflow
See other posts from Stack Overflow
or by Mark
Published on 2010-03-24T05:13:38Z
Indexed on
2010/03/24
5:23 UTC
Read the original article
Hit count: 272
I have a control that has its data bound to a standard ObservableCollection
, and I have a background task that calls a service to get more data.
I want to, then, update my backing data behind my control, while displaying a "please wait" dialog, but when I add the new items to the collection, the UI thread locks up while it re-binds and updates my controls.
Can I get around this so that my animations and stuff keep running on my "please wait" dialog?
Or at least give the "appearance" to the user that its not locked up?
© Stack Overflow or respective owner