VirtualizingLayout.OnItemsChangedCore Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Notifies the layout when the data collection assigned to the container element (ItemsSource) has changed.
This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).
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)
Parameters
- context
- VirtualizingLayoutContext
The context object that facilitates communication between the layout and its host container.
- source
-
Object
IInspectable
The data source.
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.