ObservableCollections.ModernUwp 1.0.2

dotnet add package ObservableCollections.ModernUwp --version 1.0.2
                    
NuGet\Install-Package ObservableCollections.ModernUwp -Version 1.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ObservableCollections.ModernUwp" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ObservableCollections.ModernUwp" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="ObservableCollections.ModernUwp" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ObservableCollections.ModernUwp --version 1.0.2
                    
#r "nuget: ObservableCollections.ModernUwp, 1.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ObservableCollections.ModernUwp@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ObservableCollections.ModernUwp&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=ObservableCollections.ModernUwp&version=1.0.2
                    
Install as a Cake Tool

ObservableCollections.ModernUwp

Modern UWP adapters for ObservableCollections that expose IBindableObservableVector instead of marshalling System.Collections.Specialized.NotifyCollectionChangedEventArgs across the WinRT ABI.

The package assembly is AnyCPU/MSIL and can be consumed by x86, x64, and ARM64 applications.

Why

Custom INotifyCollectionChanged implementations can fail in modern UWP because the BCL wraps NewItems and OldItems in internal ReadOnlyList types that CsWinRT cannot expose as IBindableVector. Native VectorChanged events carry only CollectionChange and Index and avoid that CCW path.

API mapping

ObservableCollections Modern UWP
ToNotifyCollectionChangedSlim() ToNotifyCollectionChangedSlimUwp()
ToNotifyCollectionChanged() ToNotifyCollectionChangedUwp()
CreateView(...).ToNotifyCollectionChanged() CreateView(...).ToNotifyCollectionChangedUwp()
ToWritableNotifyCollectionChanged() ToWritableNotifyCollectionChangedUwp()

All vector views implement IDisposable; dispose them when the binding owner is released.

Coverage

  • ObservableList<T> slim and writable adapters.
  • All IObservableCollection<T> implementations, including list, dictionary, hash set, queue, stack, and ring buffer, through the generic source adapter.
  • Filtered ISynchronizedView<TSource, TView> and writable synchronized views.
  • Optional DispatcherQueue dispatch for UI-thread vector notifications.

R3 observable-stream extensions are not duplicated: they consume ObservableCollections' generic events in managed code and do not marshal NotifyCollectionChangedEventArgs through WinRT.

Single-item add, remove, and replace operations produce ItemInserted, ItemRemoved, and ItemChanged. A single-item move produces ItemRemoved followed by ItemInserted, because IBindableObservableVector has no native move notification. Range, sort, reverse, filter, and reset operations produce Reset.

Product Compatible and additional computed target framework versions.
.NET net10.0-windows10.0.26100 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 105 7/10/2026
1.0.1 95 7/10/2026
1.0.0 103 7/10/2026

Emit granular move notifications and keep filtered writable source indices synchronized.