Share via


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(winrt::array_view <DependencyObject const&> const& items);
public void ReplaceAll(DependencyObject[] items);
function replaceAll(items)
Public Sub ReplaceAll (items As DependencyObject())

Parameters

items
DependencyObject[]

The new collection items.

Implements

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