Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Joining the main thread loop in a WCF application? (C#)

$
0
0

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? 


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>