DependencyObjectCollection.ReplaceAll(DependencyObject[]) Method

Definition

Initially clears the collection, then inserts the provided array as new items.

public:
 virtual void ReplaceAll(Platform::Array <DependencyObject ^> ^ items) = IVector<DependencyObject ^>::ReplaceAll;
void ReplaceAll(std::Array <DependencyObject const &> const & items);
public void ReplaceAll(DependencyObject[] items);
Public Sub ReplaceAll (items As DependencyObject())

Parameters

items
DependencyObject[]

The new collection items.

Implements

Windows.Foundation.Collections.IVector`1.ReplaceAll(`0[])

Remarks

For implementations that track a changed event, which this collection does do with VectorChanged, the initial reset fires an event, but the items added do not fire discrete per-item events.

Applies to