Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Asynchronous loading issues #126

Closed
LaiHT1211 opened this issue Jul 26, 2024 · 3 comments
Closed

[Question] Asynchronous loading issues #126

LaiHT1211 opened this issue Jul 26, 2024 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@LaiHT1211
Copy link

Hello Miroiu. Thank you for sharing with the open source community. I tried to create or load a Connection using Task and it threw an exception:System.NotSupportedException: 'This type of CollectionView does not support changes to its SourceCollection from threads other than the dispatcher thread.' But I see that it can be loaded asynchronously in the example.Could you please give me some help or tips?

@LaiHT1211 LaiHT1211 added the question Further information is requested label Jul 26, 2024
@miroiu
Copy link
Owner

miroiu commented Jul 26, 2024

Hi, I used BindingOperations.EnableCollectionSynchronization in the playground app (see PlaygroundViewModel), but I believe you can also use Application.Current.Dispatcher.BeginInvoke to initialize the collections.

@LaiHT1211
Copy link
Author

I try to use it is ok.Thank you .

@miroiu
Copy link
Owner

miroiu commented Aug 22, 2024

Feel free to reopen this issue if you need more information.

@miroiu miroiu closed this as completed Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants