dotnet / dotnet/wpf

Better collection syncronization

Open
#159 2 comments 0 reactions 0 assignees View on GitHub
API suggestion
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

It would help quite alot if there would be the possibility to automatically use the Collection syncronization in the standard bindings, because the currently provided EnableCollectionSynchronization method on the BindingOperations class is quite suboptimal.

It makes not much sense that the binding handles internal the UI syncronization for normal object, but for Collections the Collection changes are not handled.

My suggessions would be to either:
1. Use an extra property in the bindings which would then make the Syncroot of the Collections as lock object.
2. Create a special "Multibinding" where the syncroot object could be set through a secondary binding.

I personally would prefer the second solution (may be mixed with the first), because it would help a lot during development process of multi threaded applications.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.