I a use a plugin interface to load a screen from a dll module. I created a thread to load a User Control from a separate dll. The user control form the plugin dll uses WPF to display some charts as a dashboard. When I use a normal WinForm user control it works fine but with the WPF user control I get a thread access error. Is there a way to allow access to the thread of a WPF form?
Here is my thread code that gets the uc from the dll
There isn't enough code to see exactly what your doing, but the general problem is that you cannot touch/create/use/modify/whatever UI controls from anything other than the UI (startup) thread. Doing this stuff from any other thread will lead to the problems you're seeing, and more. This applies to both WPF and WinForms.