New to Telerik UI for WPFStart a free 30-day trial

Provides a projected view over a source list.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Type Parameters:

T

The type for the projected item.

Syntax:

C#
public class ProjectedView<T> : IEnumerable<T>, IEnumerable, INotifyCollectionChanged, IDisposable where T : new()

Inheritance: objectProjectedView<T>

Derived Classes: ObservableProjectedView<T>

Implements: IDisposableIEnumerableIEnumerable<T>INotifyCollectionChanged

Constructors

Initializes a new instance of the ProjectedView<T> class.

C#
public ProjectedView(IEnumerable sourceList)
Parameters:sourceListIEnumerable

The source list.

Properties

Gets the number of projected items in the view.

C#
public int Count { get; }

Gets the projected item at the specified index.

C#
public T this[int index] { get; }
Parameters:indexint

Methods

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

C#
public void Dispose()

Implements: IDisposable.Dispose()

Returns an enumerator that iterates through the collection.

C#
public IEnumerator<T> GetEnumerator()
Returns:

IEnumerator<T>

A IEnumerator<T> that can be used to iterate through the collection.

Implements: IEnumerable<T>.GetEnumerator()

A protected virtual version of Dispose() used by inheriting classes.

C#
protected virtual void OnDispose()

Called when a projected item is added.

C#
protected virtual void OnItemAdded(T addedItem)
Parameters:addedItemT

The added item.

Called when an item is projected.

C#
protected virtual void OnItemProjected(T projectedItem, object sourceItem)
Parameters:projectedItemT

The projected item.

sourceItemobject

The source item.

Called when a projected item is removed.

C#
protected virtual void OnItemRemoved(T removedItem)
Parameters:removedItemT

The removed item.

Called when the the ProjectedItemList is about to be cleared.

C#
protected virtual void OnItemsClearing()

Events

Occurs when the items list of the collection has changed, or the collection is reset.

C#
public event NotifyCollectionChangedEventHandler CollectionChanged

Implements: INotifyCollectionChanged.CollectionChanged