NotifyCollectionChangedAction: SourceCache vs ObservableCollection #1043
To my knowledge, WPF does not support the If I add 100 items, does |
Replies: 2 comments
|
I've never myself had the opportunity to dig into the details of the various Any single operation performed on a The interesting part is what happens within a
If you're looking to improve performance, what you'd want to do is implement your own version of DynamicData's |
|
In ReactiveUI in our old ReactiveList's before we adapted over to using DynamicData, we used to have flags for WPF to only send through the non-range events. It's binding engine is very primitive. |
I've never myself had the opportunity to dig into the details of the various
.Bind()operators, so take this with a grain of salt...Any single operation performed on a
SourceCache<>should (there's probably a few quirky exceptions I'm not aware of) generate a single keyedIChangeSet<>that's published to listeners. That really has nothing to do with WPF or any other UI framework, that's just all part of the DynamicData business layer.The interesting part is what happens within a
.Bind()operation. In the case of adding 100 items, like you say (assuming you perform those adds as a single operation at the source),.Bind()what happens is as follows:.Bind()invokesObservableCollectionAd…