Share via


VirtualizingLayout.OnItemsChangedCore 方法

定義

當指派給 Container 元素的數據收集 (ItemsSource) 變更時,通知配置。

void OnItemsChangedCore(VirtualizingLayoutContext const& context, IInspectable const& source, NotifyCollectionChangedEventArgs const& args);
protected virtual void OnItemsChangedCore(VirtualizingLayoutContext context, object source, NotifyCollectionChangedEventArgs args);
function onItemsChangedCore(context, source, args)
Protected Overridable Sub OnItemsChangedCore (context As VirtualizingLayoutContext, source As Object, args As NotifyCollectionChangedEventArgs)

參數

context
VirtualizingLayoutContext

內容物件,可協助配置與其主機容器之間的通訊。

source
Object

IInspectable

資料來源。

args
NotifyCollectionChangedEventArgs

有關集合變更的數據。

備註

選擇維護檢視區中元素界限的專屬記錄的配置,可以使用這個來更新其記錄,因為數據發生變更。 這適用於更複雜的虛擬化版面配置,這些配置必須在版面配置中測量每個項目的內容。

適用於