How to write async background workers that work on WPF flowdocument

Posted by iBe on Stack Overflow See other posts from Stack Overflow or by iBe
Published on 2010-05-22T02:47:56Z Indexed on 2010/05/22 2:50 UTC
Read the original article Hit count: 328

I'm trying to write a background worker that processes a flowdocument. I can't access the properties of flowdocument objects because of the thread verification. I tried to serialize the document and loaded it on the worker thread which actually solved the thread verfication issue. However, once the processing is complete I also need to use things like TextPointer objects. Those objects now point to a objects in the copy not the original.

Can anyone suggest the best way to approach such background processing in WPF?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about flowdocument