Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 1.17 KB

scrollviewer_unregisteranchorcandidate_667335027.md

File metadata and controls

34 lines (19 loc) · 1.17 KB
-api-id -api-type ms.custom
M:Windows.UI.Xaml.Controls.ScrollViewer.UnregisterAnchorCandidate(Windows.UI.Xaml.UIElement)
winrt method
RS5

Windows.UI.Xaml.Controls.ScrollViewer.UnregisterAnchorCandidate

-description

Unregisters a UIElement as a potential scroll anchor.

-parameters

-param element

A UIElement within the subtree of the ScrollViewer.

-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

IScrollAnchorProvider, RegisterAnchorCandidate, CanBeScrollAnchor

-examples