WpfObservableRangeCollection 2.0.0
See the version list below for details.
dotnet add package WpfObservableRangeCollection --version 2.0.0
NuGet\Install-Package WpfObservableRangeCollection -Version 2.0.0
<PackageReference Include="WpfObservableRangeCollection" Version="2.0.0" />
paket add WpfObservableRangeCollection --version 2.0.0
#r "nuget: WpfObservableRangeCollection, 2.0.0"
// Install WpfObservableRangeCollection as a Cake Addin #addin nuget:?package=WpfObservableRangeCollection&version=2.0.0 // Install WpfObservableRangeCollection as a Cake Tool #tool nuget:?package=WpfObservableRangeCollection&version=2.0.0
WpfObservableRangeCollection
Provides ObservableRangeCollection and its WPF version, including AddRange, InsertRange, RemoveRange, Replace/ReplaceRange methods for bulk operation, but only update the notification once.
Classes
ObservableRangeCollection
: Represents a dynamic data collection that provides notifications when items get added, removed, or when the whole list is refreshed.Forked from weitzhandler/rangeobservablecollection-cs
WpfObservableRangeCollection
: Wpf version of ObservableRangeCollection with CollectionView support.Forked from weitzhandler/wpfobservablerangecollection-cs
Why WpfObservableRangeCollection?
I've searched the web for some ObservableCollections that have *Range methods, but they all raise various exceptions(and some strange problems) in certain specific situations:
- System.NotSupportedException: Range actions are not supported.
- System.InvalidOperationException: The "x" index in the collection change event is not valid for collections of size "y".
- More? I'm not sure. I forgot.
If the NotSupportedException
still occurred, try using BindingOperations.EnableCollectionSynchronization(IEnumerable, Object)
.
In the end, I chose weitzhandler/RangeObservableCollection
and weitzhandler/WpfObservableRangeCollection
and made slight changes to the code, and finally, I didn't encounter any problems, for now.
Seealso
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0-windows7.0 is compatible. net7.0-windows was computed. net8.0-windows was computed. |
-
net6.0-windows7.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.