共用方式為


ObservableCollection<T>.CollectionChanged 事件

定義

發生於新增、移除或移動專案,或重新整理整個清單時。

public:
 virtual event System::Collections::Specialized::NotifyCollectionChangedEventHandler ^ CollectionChanged;
public virtual event System.Collections.Specialized.NotifyCollectionChangedEventHandler CollectionChanged;
public virtual event System.Collections.Specialized.NotifyCollectionChangedEventHandler? CollectionChanged;
member this.CollectionChanged : System.Collections.Specialized.NotifyCollectionChangedEventHandler 
Public Overridable Custom Event CollectionChanged As NotifyCollectionChangedEventHandler 
Public Overridable Event CollectionChanged As NotifyCollectionChangedEventHandler 

事件類型

實作

適用於

另請參閱