VirtualizingLayout.OnItemsChangedCore Method

Definition

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

C#
protected virtual void OnItemsChangedCore(VirtualizingLayoutContext context, object source, NotifyCollectionChangedEventArgs args);

Parameters

context
VirtualizingLayoutContext

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

source
Object

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

Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6