-api-id | -api-type |
---|---|
M:Microsoft.UI.Xaml.Controls.VirtualizingLayout.UninitializeForContextCore(Microsoft.UI.Xaml.Controls.VirtualizingLayoutContext) |
winrt method |
Microsoft.UI.Xaml.Controls.VirtualizingLayout.UninitializeForContextCore(Microsoft.UI.Xaml.Controls.VirtualizingLayoutContext)
When overridden in a derived class, removes any state the layout previously stored on the UIElement container.
The context object that facilitates communication between the layout and its host container.
Override this method in a derived class to provide the behavior for calls to Layout.UninitializeForContext(Microsoft.UI.Xaml.Controls.LayoutContext).
Container elements that support attached layouts should call UninitializeForContext when a layout instance is disassociated with the container. The container is expected to give the attached layout instance a way to store and retrieve any per-container state by way of the provided context.