DependencyObjectCollection<T>.Add Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Adds the specified object to the end of the collection.
Assembly: System.Windows (in System.Windows.dll)
| Exception | Condition |
|---|---|
| ArgumentException | item is not a DependencyObject. |
| InvalidOperationException | The method is being called in a CollectionChanged event handler. |
Show: