UIElementCollection.ReplaceAll(UIElement[]) Method

Definition

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

C#
public void ReplaceAll(UIElement[] items);

Parameters

items
UIElement[]

The new collection items.

Implements

Remarks

For implementations that track a "changed" event, the initial reset fires an event, but the items added do not fire discrete per-item events.

If you are programming using C# or Microsoft Visual Basic, there is no single-call equivalent to ReplaceAll. Use Clear and then successive calls to Add.

Applies to

Produk Versi
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6

See also