[]
        
(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)
MoveItem(int, int)
RemoveItem(int)
SetItem(int, TTarget)

Events

Name Description
CollectionChanged

Occurs when the collection changes.

PropertyChanged

Exposes underlying collection PropertyChanged event.