共用方式為


ModelItemCollection.CollectionChanged 事件

在衍生類別中覆寫時,當這個集合的內容變更時發生。

命名空間:  Microsoft.Windows.Design.Model
組件:  Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)

語法

'宣告
Public MustOverride Event CollectionChanged As NotifyCollectionChangedEventHandler
public abstract event NotifyCollectionChangedEventHandler CollectionChanged
public:
virtual  event NotifyCollectionChangedEventHandler^ CollectionChanged {
    void add (NotifyCollectionChangedEventHandler^ value);
    void remove (NotifyCollectionChangedEventHandler^ value);
}
abstract CollectionChanged : IEvent<NotifyCollectionChangedEventHandler,
    NotifyCollectionChangedEventArgs>
JScript 不支援事件。

實作

INotifyCollectionChanged.CollectionChanged

.NET Framework 安全性

請參閱

參考

ModelItemCollection 類別

Microsoft.Windows.Design.Model 命名空間

其他資源

WPF 設計工具擴充性架構