CollectionView.OnCollectionChanged CollectionView.OnCollectionChanged CollectionView.OnCollectionChanged CollectionView.OnCollectionChanged Method

Definizione

Genera l'evento CollectionChanged.Raises the CollectionChanged event.

Overload

OnCollectionChanged(NotifyCollectionChangedEventArgs) OnCollectionChanged(NotifyCollectionChangedEventArgs) OnCollectionChanged(NotifyCollectionChangedEventArgs) OnCollectionChanged(NotifyCollectionChangedEventArgs)

Genera l'evento CollectionChanged.Raises the CollectionChanged event.

OnCollectionChanged(Object, NotifyCollectionChangedEventArgs) OnCollectionChanged(Object, NotifyCollectionChangedEventArgs) OnCollectionChanged(Object, NotifyCollectionChangedEventArgs) OnCollectionChanged(Object, NotifyCollectionChangedEventArgs)

Genera l'evento CollectionChanged.Raises the CollectionChanged event.

OnCollectionChanged(NotifyCollectionChangedEventArgs) OnCollectionChanged(NotifyCollectionChangedEventArgs) OnCollectionChanged(NotifyCollectionChangedEventArgs) OnCollectionChanged(NotifyCollectionChangedEventArgs)

Genera l'evento CollectionChanged.Raises the CollectionChanged event.

protected:
 virtual void OnCollectionChanged(System::Collections::Specialized::NotifyCollectionChangedEventArgs ^ args);
protected virtual void OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs args);
abstract member OnCollectionChanged : System.Collections.Specialized.NotifyCollectionChangedEventArgs -> unit
override this.OnCollectionChanged : System.Collections.Specialized.NotifyCollectionChangedEventArgs -> unit
Protected Overridable Sub OnCollectionChanged (args As NotifyCollectionChangedEventArgs)

Parametri

Commenti

Prendere in considerazione tutti i criteri di ordinamento, filtro o raggruppamento prima di chiamare questo metodo per generare l' CollectionChanged evento.Take any sorting, filtering, or grouping criteria into consideration before calling this method to raise the CollectionChanged event.

OnCollectionChanged(Object, NotifyCollectionChangedEventArgs) OnCollectionChanged(Object, NotifyCollectionChangedEventArgs) OnCollectionChanged(Object, NotifyCollectionChangedEventArgs) OnCollectionChanged(Object, NotifyCollectionChangedEventArgs)

Genera l'evento CollectionChanged.Raises the CollectionChanged event.

protected:
 void OnCollectionChanged(System::Object ^ sender, System::Collections::Specialized::NotifyCollectionChangedEventArgs ^ args);
protected void OnCollectionChanged (object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs args);
member this.OnCollectionChanged : obj * System.Collections.Specialized.NotifyCollectionChangedEventArgs -> unit
Protected Sub OnCollectionChanged (sender As Object, args As NotifyCollectionChangedEventArgs)

Parametri

sender
Object Object Object Object

Mittente dell'evento.The sender of the event.

Commenti

Questo metodo chiama ProcessCollectionChanged se si trova sul dispatcher di Interfaccia utenteUI thread corretto e non è mai stato aggiornato da un thread diverso oppure Invia la modifica al dispatcher per elaborarla nel thread corretto.This method calls ProcessCollectionChanged if it is on the correct Interfaccia utenteUI thread dispatcher and has never been updated from a different thread, or posts the change to the dispatcher to process it on the correct thread.

Si applica a