[]
Represents an adapter that converts a Viewer's ObservableCollection<T> to a WPF ObservableCollection<T> for data binding in XAML markup.
public class ObservableCollectionAdapter<TSource, TTarget> : ObservableCollection<TTarget>, IList<TTarget>, ICollection<TTarget>, IList, ICollection, IReadOnlyList<TTarget>, IReadOnlyCollection<TTarget>, IEnumerable<TTarget>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged where TSource : INotifyPropertyChanged
Name | Description |
---|---|
TSource | The type of items in the source ObservableCollection<T>. |
TTarget | The type of items in the target ObservableCollection<T>. |
Name | Description |
---|---|
ObservableCollectionAdapter(ObservableCollection<TSource>, Func<TSource, int, TTarget>) | Initializes a new instance of the ObservableCollectionAdapter<TSource, TTarget> class. |
Name | Description |
---|---|
ClearItems() | Removes all items from the collection. |
InsertItem(int, TTarget) | |
MoveItem(int, int) | |
RemoveItem(int) | |
SetItem(int, TTarget) |
Name | Description |
---|---|
CollectionChanged | Occurs when the collection changes. |
PropertyChanged | Exposes underlying collection PropertyChanged event. |