I have a thread that is moving objects around in a canvas by changing their coordinates when events happen. normally if I was doing all this on the ui thread, there's no problem to call invalidate whenever I want to redraw. but of course this blows up from the thread if invalidate is called from it.
could someone show me a little snippet that would show how to use the synchronization context to call invalidate from my thread? this worker was started with task.factory.startnew(MoveObjectsAround)