Skip to content

When binding a Object that implements INotifyCollectionChanged to a ItemsControl, update the object doesn't trigger view updating #15623

Answered by timunie
cdytoby asked this question in Q&A
Discussion options

You must be logged in to vote

the docs state this for WPF: https://github.com/Cysharp/ObservableCollections?tab=readme-ov-file#wpf

BindingOperations.EnableCollectionSynchronization(ItemsView, new object()); // for ui synchronization safety of viewmodel

So you should use another approach, for example DynamicData. It's by design with this lib.

Replies: 6 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@timunie
Comment options

Comment options

You must be logged in to vote
1 reply
@cdytoby
Comment options

Comment options

You must be logged in to vote
2 replies
@timunie
Comment options

Answer selected by cdytoby
@cdytoby
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #15607 on May 06, 2024 09:09.