[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Converters.ObservableCollectionAdapter-2

ObservableCollectionAdapter<TSource, TTarget> Class

Represents an adapter that converts a Viewer's ObservableCollection<T> to a WPF ObservableCollection<T> for data binding in XAML markup.

Inheritance
Collection<TTarget>
ObservableCollectionAdapter<TSource, TTarget>
Namespace: GrapeCity.ActiveReports.Converters
Assembly: MESCIUS.ActiveReports.Viewer.Wpf.dll
Syntax
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
Type Parameters
Name Description
TSource

The type of items in the source ObservableCollection<T>.

TTarget

The type of items in the target ObservableCollection<T>.

Constructors

Name Description
ObservableCollectionAdapter(ObservableCollection<TSource>, Func<TSource, int, TTarget>)

Initializes a new instance of the ObservableCollectionAdapter<TSource, TTarget> class.

Methods

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.

Events

Name Description
CollectionChanged

Occurs when the collection changes.

PropertyChanged

Exposes underlying collection PropertyChanged event.