Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 1.14 KB

iscrollanchorprovider_unregisteranchorcandidate_1598248032.md

File metadata and controls

31 lines (18 loc) · 1.14 KB
-api-id -api-type
M:Microsoft.UI.Xaml.Controls.IScrollAnchorProvider.UnregisterAnchorCandidate(Microsoft.UI.Xaml.UIElement)
winrt method

Microsoft.UI.Xaml.Controls.IScrollAnchorProvider.UnregisterAnchorCandidate

-description

Unregisters a UIElement as a potential scroll anchor candidate.

-parameters

-param element

A UIElement within the subtree of the IScrollAnchorProvider.

-remarks

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.

-see-also

RegisterAnchorCandidate, CanBeScrollAnchor

-examples