IBindableObservableVector.VectorChanged Evento

Definizione

Si verifica quando cambia la raccolta vettoriale (aggiunta, eliminazione, modifica dell'elemento).

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 

Tipo evento

Commenti

Questa interfaccia supporta la creazione di raccolte associabili ai dati in C++. Quando si esegue la programmazione con .NET, è consigliabile usare ObservableCollection(Of T) o implementare IList e INotifyCollectionChanged.

Si applica a

Vedi anche