We have a WPF project. I got the following error:
InvalidOperationException was unhandled
The calling thread cannot access this object because a different thread owns it.
I try to get value from a TextBox from a worker thread created by me.
How to avoid this. I was able to avoid this in another Form project by using delegate
call back and Invoked()
method but somehow it doesn't work in this WPF project.
any simple sample code? thanks,