Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 1.5 KB

virtualizinglayout_uninitializeforcontextcore_1838712024.md

File metadata and controls

35 lines (20 loc) · 1.5 KB
-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)

-description

When overridden in a derived class, removes any state the layout previously stored on the UIElement container.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

-parameters

-param context

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

-remarks

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.

-see-also

InitializeForContextCore

-examples