다음을 통해 공유


ItemsSourceView.CollectionChanged 이벤트

정의

변경 이유와 변경된 항목을 나타내기 위해 컬렉션이 변경된 경우에 발생합니다.

// 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;
public event NotifyCollectionChangedEventHandler CollectionChanged;
function onCollectionChanged(eventArgs) { /* Your code */ }
itemsSourceView.addEventListener("collectionchanged", onCollectionChanged);
itemsSourceView.removeEventListener("collectionchanged", onCollectionChanged);
- or -
itemsSourceView.oncollectionchanged = onCollectionChanged;
Public Custom Event CollectionChanged As NotifyCollectionChangedEventHandler Implements CollectionChanged

이벤트 유형

구현

적용 대상