IBindableObservableVector.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 vector collection changes (add, delete, item change).
public:
event BindableVectorChangedEventHandler ^ VectorChanged;
// Register
event_token VectorChanged(BindableVectorChangedEventHandler const& handler) const;
// Revoke with event_token
void VectorChanged(event_token const* cookie) const;
// Revoke with event_revoker
IBindableObservableVector::VectorChanged_revoker VectorChanged(auto_revoke_t, BindableVectorChangedEventHandler const& handler) const;
event BindableVectorChangedEventHandler VectorChanged;
function onVectorChanged(eventArgs) { /* Your code */ }
iBindableObservableVector.addEventListener("vectorchanged", onVectorChanged);
iBindableObservableVector.removeEventListener("vectorchanged", onVectorChanged);
- or -
iBindableObservableVector.onvectorchanged = onVectorChanged;
Event VectorChanged As BindableVectorChangedEventHandler
Event Type
Remarks
This interface supports the creation of data bindable collections in C++. When programming with .NET, you should use ObservableCollection(Of T) or implement IList and INotifyCollectionChanged.