ScrollViewer.UnregisterAnchorCandidate(UIElement) Method

Definition

Unregisters a UIElement as a potential scroll anchor.

public:
 virtual void UnregisterAnchorCandidate(UIElement ^ element) = UnregisterAnchorCandidate;
void UnregisterAnchorCandidate(UIElement const& element);
public void UnregisterAnchorCandidate(UIElement element);
function unregisterAnchorCandidate(element)
Public Sub UnregisterAnchorCandidate (element As UIElement)

Parameters

element
UIElement

A UIElement within the subtree of the ScrollViewer.

Implements

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.

Applies to

See also