[]
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) | Inserts an item into the collection at the specified index. |
| MoveItem(int, int) | Moves the item at the specified index to a new location in the collection. |
| RemoveItem(int) | Removes the item at the specified index of the collection. |
| SetItem(int, TTarget) | Replaces the element at the specified index. |
| Name | Description |
|---|---|
| CollectionChanged | Occurs when the collection changes. |
| PropertyChanged | Exposes underlying collection PropertyChanged event. |