swinefish 5 Junior Poster in Training

Hello all

I'm having a major problem with instantiating objects across threads in WPF. For example, if I have the following: Line l = new Line I get the following error: 'InvalidOperationException: The calling thread must be STA, because many UI components require this.' While I understand that in general, this error means that I must use the Dispatcher to perform what I need, I can't see anyway to use the dispatcher for the sake of instantiation.

Is there anybody who could give me a little push in the right direction with this? Thanks so much.

M