Поделиться через


ItemsSourceView.CollectionChanged Событие

Определение

Происходит, когда коллекция изменилась, чтобы указать причину изменения и какие элементы были изменены.

Эта документация относится к WinUI 2 для UWP (для WinUI в Windows App SDK см. Windows App 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

Применяется к