IAttachedCollectionSource.Items Property

Definition

Gets (and creates, if necessary) the collection of items associatedwith this IAttachedCollectionSource.

public:
 property System::Collections::IEnumerable ^ Items { System::Collections::IEnumerable ^ get(); };
public System.Collections.IEnumerable Items { get; }
member this.Items : System.Collections.IEnumerable
Public ReadOnly Property Items As IEnumerable

Property Value

Returns IEnumerable.

Remarks

If this collection does not change after the initial collection is returned, you may return any implementation of IEnumerable. However, if this collection does change over time, you may return any collection which implements INotifyCollectionChanged (such as an ObservableCollection). If you return a collection implementing INotifyCollectionChanged, the collection's consumer will observe changes to the collection and update the view on the collection when the collection is modified.

Applies to