MarshalingObservableCollection Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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 | |