DependencyObjectCollection.VectorChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the contents of the collection changes.
public:
virtual event VectorChangedEventHandler<DependencyObject ^> ^ VectorChanged;
// Register
event_token VectorChanged(VectorChangedEventHandler<DependencyObject> const& handler) const;
// Revoke with event_token
void VectorChanged(event_token const* cookie) const;
// Revoke with event_revoker
DependencyObjectCollection::VectorChanged_revoker VectorChanged(auto_revoke_t, VectorChangedEventHandler<DependencyObject> const& handler) const;
public event VectorChangedEventHandler<DependencyObject> VectorChanged;
function onVectorChanged(eventArgs) { /* Your code */ }
dependencyObjectCollection.addEventListener("vectorchanged", onVectorChanged);
dependencyObjectCollection.removeEventListener("vectorchanged", onVectorChanged);
- or -
dependencyObjectCollection.onvectorchanged = onVectorChanged;
Public Custom Event VectorChanged As VectorChangedEventHandler(Of DependencyObject) Implements VectorChanged
Event Type
Implements
Remarks
This event is named VectorChanged for all languages, but for C# and Microsoft Visual Basic the implemented collection type is IList.
The type of change that was applied to the collection is communicated as a CollectionChange value in the event data, with a collection index for where in the collection the change occurred. Because it reports per-index, multiple VectorChanged events can originate from the same collection at the same time.