Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 947 Bytes

uielementcollection_replaceall_319744539.md

File metadata and controls

29 lines (19 loc) · 947 Bytes
-api-id -api-type
M:Windows.UI.Xaml.Controls.UIElementCollection.ReplaceAll(Windows.UI.Xaml.UIElement[])
winrt method

Windows.UI.Xaml.Controls.UIElementCollection.ReplaceAll

-description

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

-parameters

-param items

The new collection items.

-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.

-examples

-see-also

Clear