VirtualizingLayout.OnItemsChangedCore Method

Definition

Notifies the layout when the data collection assigned to the container element (ItemsSource) has changed.

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)

Parameters

context
VirtualizingLayoutContext

The context object that facilitates communication between the layout and its host container.

source
Object

IInspectable

The data source.

args
NotifyCollectionChangedEventArgs

Data about the collection change.

Remarks

A layout that chooses to maintain its own record for the bounds of elements in the viewport can use this to update its records as changes occur in the data. This is useful for more complex virtualizing layouts that must measure the content of each item as part of the layout.

Applies to