I am starting a new UI-Thread in my WPF-application. Now I am searching a way to get a list with all windows in this thread – like I will get it for the main-thread with System.Windows.Application.Current.Windows.
Is there something in the .NET-Framework or does I have to implement it myself? When I have to implement it myself, perhaps someone have little bit of sample-code?
I am starting a new UI-Thread in my WPF-application. Now I am searching a
Share
To quote MSDN:
So it seems the windows created by worker threads are not hold in any collection automatically. I assume you create that window on the worker thread – so you should store a reference to it yourself for later access (you could do that in the Windows constructor by adding
thisto some window manager class)