-api-id | -api-type |
---|---|
M:Microsoft.UI.Xaml.Controls.IScrollAnchorProvider.UnregisterAnchorCandidate(Microsoft.UI.Xaml.UIElement) |
winrt method |
Unregisters a UIElement as a potential scroll anchor candidate.
A UIElement within the subtree of the IScrollAnchorProvider.
When an element's CanBeScrollAnchor property changes to false (or the element is removed from the visual tree), the framework locates the first IScrollAnchorProvider in that element's chain of ancestors and automatically calls its UnregisterAnchorCandidate method.