Share via


MarshalingObservableCollection Class

Definition

A thread-safe observable collection that marshals all collection changes to the main thread.

public ref class MarshalingObservableCollection : System::Collections::Generic::List<System::Object ^>, System::Collections::Specialized::INotifyCollectionChanged
public class MarshalingObservableCollection : System.Collections.Generic.List<object>, System.Collections.Specialized.INotifyCollectionChanged
type MarshalingObservableCollection = class
    inherit List<obj>
    interface INotifyCollectionChanged
Public Class MarshalingObservableCollection
Inherits List(Of Object)
Implements INotifyCollectionChanged
Inheritance
MarshalingObservableCollection
Implements

Remarks

This collection wraps an INotifyCollectionChanged collection and ensures that all collection change notifications are processed on the main UI thread, making it safe to bind to UI controls even when the underlying collection is modified from background threads.

Constructors

Name Description
MarshalingObservableCollection(IList)

Events

Name Description
CollectionChanged

Applies to