Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 1.54 KB

iscrollanchorprovider_registeranchorcandidate_178281111.md

File metadata and controls

35 lines (20 loc) · 1.54 KB
-api-id -api-type ms.custom
M:Windows.UI.Xaml.Controls.IScrollAnchorProvider.RegisterAnchorCandidate(Windows.UI.Xaml.UIElement)
winrt method
RS5

Windows.UI.Xaml.Controls.IScrollAnchorProvider.RegisterAnchorCandidate

-description

Registers a UIElement as a potential scroll anchor candidate.

-parameters

-param element

A UIElement within the subtree of the IScrollAnchorProvider.

-remarks

When an element has CanBeScrollAnchor set to true the framework locates the first IScrollAnchorProvider in that element's chain of ancestors and automatically calls its RegisterAnchorCandidate method. This occurs both when the property is set on an existing element or an element is added to the live tree with the property already set.

Similarly, when the property is set to false (or an element is removed from the visual tree with the property set to true), the framework calls UnregisterAnchorCandidate on the first IScrollAnchorProvider.

-see-also

UnregisterAnchorCandidate, CanBeScrollAnchor

-examples