You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 13, 2025. It is now read-only.
Provides ObservableRangeCollection and its WPF version, including AddRange, RemoveRange, Replace/ReplaceRange methods for bulk operation, but only update the notification once.
3
+
Provides ObservableRangeCollection and its WPF version, including AddRange, InsertRange, RemoveRange, Replace/ReplaceRange methods for bulk operation, but only update the notification once.
4
4
5
5
---
6
6
@@ -10,7 +10,7 @@ Provides ObservableRangeCollection and its WPF version, including AddRange, Remo
10
10
11
11
## Classes
12
12
-`ObservableRangeCollection`: Represents a dynamic data collection that provides notifications when items get added, removed, or when the whole list is refreshed.
13
-
> Forked from [XamarinCommunityToolkit/src/CommunityToolkit/Xamarin.CommunityToolkit/ObjectModel/ObservableRangeCollection.shared.cs](https://github.com/xamarin/XamarinCommunityToolkit/blob/main/src/CommunityToolkit/Xamarin.CommunityToolkit/ObjectModel/ObservableRangeCollection.shared.cs)
13
+
> Forked from [weitzhandler/rangeobservablecollection-cs](https://gist.github.com/weitzhandler/65ac9113e31d12e697cb58cd92601091#file-rangeobservablecollection-cs)
14
14
15
15
-`WpfObservableRangeCollection`: Wpf version of ObservableRangeCollection with CollectionView support.
16
16
> Forked from [weitzhandler/wpfobservablerangecollection-cs](https://gist.github.com/weitzhandler/65ac9113e31d12e697cb58cd92601091#file-wpfobservablerangecollection-cs)
@@ -20,13 +20,14 @@ See [ObservableCollection Doesn't support AddRange method, so I get notified for
20
20
21
21
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:
22
22
- System.NotSupportedException: Range actions are not supported.
23
-
- System.InvalidOperationException: The "2" index in the collection change event is not valid for collections of size "1".
23
+
- System.InvalidOperationException: The "x" index in the collection change event is not valid for collections of size "y".
24
24
- More? I'm not sure. I forgot.
25
25
26
26
If the `NotSupportedException` still occurred, try using `BindingOperations.EnableCollectionSynchronization(IEnumerable, Object)`.
27
27
28
-
In the end, I chose `XamarinCommunityToolkit/ObservableRangeCollection` and `weitzhandler/WpfObservableRangeCollection` and made slight changes to the code, and finally, I didn't encounter any problems, for now.
28
+
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.
0 commit comments