Share via


ItemsSourceView.CollectionChanged 事件

定義

發生于集合已變更以指出變更的原因和變更專案的原因時。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

// Register
event_token CollectionChanged(NotifyCollectionChangedEventHandler const& handler) const;

// Revoke with event_token
void CollectionChanged(event_token const* cookie) const;

// Revoke with event_revoker
ItemsSourceView::CollectionChanged_revoker CollectionChanged(auto_revoke_t, NotifyCollectionChangedEventHandler const& handler) const;
// This member is not implemented in C#
' This member is not implemented in VB.NET

事件類型

實作

E:Windows.UI.Xaml.Interop.INotifyCollectionChanged.CollectionChanged E:System.Collections.Specialized.INotifyCollectionChanged.CollectionChanged

適用於