multithreading - WP7 App Updating observable collections from service & updating UI -
hi im making app trackers other users movements , uploads own
i'm downloading collections service repeatably
i want assigning data collections on phone doing stuff these collections(such triangulation of proximity) , calling these locations update map..
whats best way go doing this, avoid conflicts access observable collections ?
by avoiding conflicts presume mean threading issues? if case, make sure use dispatcher move work updates ui onto ui thread:
dispatcher.begininvoke(() => { myobservablecollection.add(mydataitem); });
you can obtain reference dispatcher ui control
Comments
Post a Comment