Share via


VirtualizingLayout.OnItemsChangedCore 方法

定義

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

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

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

參數

context
VirtualizingLayoutContext

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

source
Object

IInspectable

資料來源。

備註

選擇維護檢視區中元素界限的專屬記錄的版面配置,可以在資料發生變更時,使用此配置來更新其記錄。 這適用于更複雜的虛擬化版面配置,這些配置必須測量每個專案的內容做為版面配置的一部分。

適用於