Cysharp / Cysharp/ObservableCollections
In .NET Framework, ObservableList.CreateView does not update with new items when they are added to the ObservableList.
Open
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 1k
- Forks
- 73
- Avg merge
- 5d 4h
- Merged PRs (30d)
- 2
Description
same code:
var view = observableList.CreateView(x => x);
ItemsView = view.ToNotifyCollectionChanged(SynchronizationContextCollectionEventDispatcher.Current);
observableList.AddRange(new[] { 1, 2, 3, 4, 5 });
framework:
core:
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported CreateView and ToNotifyCollectionChanged repro, then inspect how ObservableList.AddRange propagates changes to views. Run the sample on .NET Framework and compare the framework and core behavior shown in the issue. Done means adding items causes the created view and bound ItemsView to update.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100