I tried the thread safe way and I'm still getting the error, here is a screen shot:
Exception on insertYou can see above that the dispatcher is actually allowing access yet throwing an an exception saying it's not from the dispatcher thread. If I only have one window open then everything works perfectly fine but if I have two then it blows up, which is leading me to believe that there are two different dispatchers attached to this collection and no matter which dispatcher I am using to change the collection it is the wrong one.
So my question is how can I change a collection with multiple UI threads bound to it?
I tried the thread safe way and I'm still getting the error, here is a screen shot:
You can see above that the dispatcher is actually allowing access yet throwing an an exception saying it's not from the dispatcher thread. If I only have one window open then everything works perfectly fine but if I have two then it blows up, which is leading me to believe that there are two different dispatchers attached to this collection and no matter which dispatcher I am using to change the collection it is the wrong one.
So my question is how can I change a collection with multiple UI threads bound to it?