You are going to have to come back to your main thread (also called UI thread
) in order to update
the UI.
Any other thread trying to update your UI will just cause exceptions
to be thrown all over the place.
So because you are in WPF, you can use the Dispatcher
and more specifically a beginInvoke
on this dispatcher
. This will allow you to execute what needs done (typically Update the UI) in the UI thread.
You migh also want to "register" the UI
in your business
, by maintaining a reference to a control/form, so you can use its dispatcher
.