How do I open a window on a new thread?

后端 未结 3 810
离开以前
离开以前 2021-02-08 12:48

I have a options window and a window that displays color based on these options and Kinect data. So far everything\'s on one thread (as far as I know; I haven\'t done any thread

3条回答
  •  心在旅途
    2021-02-08 13:24

    So I was running into a similar issue where a new window failed to open on a new thread. The exception was "cannot use a dependencyobject that belongs to a different thread".

    The issue ended up being that the window was using a global resource (Background brush). Once I froze the brush resource, the window loaded just fine.

提交回复
热议问题