IScrollAnchorProvider.UnregisterAnchorCandidate(UIElement) Method

Definition

Unregisters a UIElement as a potential scroll anchor candidate.

public:
 void UnregisterAnchorCandidate(UIElement ^ element);
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 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.

Applies to

See also