I'm trying to join the main thread loop in a WCF application so I can occasionally update the UI, but I can't seem to figure it out and any help would be greatly appreciated.
I created my GUI objects in XAML. So that my GUI doesn't hang, I process data in a worker thread and the worker thread uses a delegate to update a variable in the main UI thread with the results. This part works great, but I'm at a dead end.
I have a method that checks for data and updates the UI if any data is waiting, but I can't figure out how to get my method called from the main UI thread. I tried a timer, but it seems to be running on a separate thread and doesn't have access to the
GUI objects. Would someone please point me in the right direction?