CollectionView.OnCollectionChanged Method
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.
Raises the CollectionChanged event.
Overloads
OnCollectionChanged(NotifyCollectionChangedEventArgs) |
Raises the CollectionChanged event. |
OnCollectionChanged(Object, NotifyCollectionChangedEventArgs) |
Raises the CollectionChanged event. |
OnCollectionChanged(NotifyCollectionChangedEventArgs)
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)
Parameters
The NotifyCollectionChangedEventArgs object to pass to the event handler.
Remarks
Take any sorting, filtering, or grouping criteria into consideration before calling this method to raise the CollectionChanged event.
Applies to
OnCollectionChanged(Object, NotifyCollectionChangedEventArgs)
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)
Parameters
- sender
- Object
The sender of the event.
The NotifyCollectionChangedEventArgs object to pass to the event handler.
Remarks
This method calls ProcessCollectionChanged if it is on the correct UI 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.
Applies to
Maklum balas
https://aka.ms/ContentUserFeedback.
Akan datang: Sepanjang 2024, kami akan menghentikan secara berperingkat Isu GitHub sebagai kaedah maklum balas untuk kandungan dan menggantikannya dengan sistem maklum balas baharu. Untuk mendapatkan maklumat lanjut lihat:Kirim dan lihat maklum balas untuk