I am creating an application that will build a huge FlowDocument. The elapsed time to create a FlowDocument was about 3-4 seconds.
So I like to create a FlowDocument in BackgroundWorker, not in a UI thread. but BackgroundWorker cannot return a WPF interface object. (This threw an InvalidOperationException.)
how can i solve this problem?
source share