WPF How to stop animation from a thread in background worker

Posted by toni on Stack Overflow See other posts from Stack Overflow or by toni
Published on 2010-03-22T16:39:48Z Indexed on 2010/03/22 16:41 UTC
Read the original article Hit count: 447

Filed under:
|
|
|
|

Hi!

I have a task that takes a long time. I do it with a background worker thread and before start it, since Do_Work I begin an animation over a label and when task finishes, I stop it in RunWorkerCompleted but I received an error because I try to begin/stop animation in the background thread that is not the owner. How can I do this, I mean to begin/stop animation in the background worker?

thanks!

© Stack Overflow or respective owner

Related posts about wpf

Related posts about backgroundworker