I got a thread running every few seconds fetching some data from a db
but this is based on the selection on a listbox and on a few checkboxes…
can I read the values of these controls without using the GUI thread?
The data is also read whenever one of the controls change, but the data might change in db
without warning…hence the thread running every few seconds.
I’m working with wpf C#
In short, no. Controls can only be accessed by the thread that created them.
Prove it for yourself:
Do something like this instead: