VirtualizingPanel.OnItemsChanged(Object, ItemsChangedEventArgs) 方法

定义

当与此面板ItemsControl 关联的 Items 集合更改时调用。

protected:
 virtual void OnItemsChanged(Platform::Object ^ sender, ItemsChangedEventArgs ^ args) = OnItemsChanged;
void OnItemsChanged(IInspectable const& sender, ItemsChangedEventArgs const& args);
protected virtual void OnItemsChanged(object sender, ItemsChangedEventArgs args);
function onItemsChanged(sender, args)
Protected Overridable Sub OnItemsChanged (sender As Object, args As ItemsChangedEventArgs)

参数

sender
Object

Platform::Object

IInspectable

引发事件的 Object

args
ItemsChangedEventArgs

提供 ItemsChanged 事件的数据。

适用于