ScrollView.UnregisterAnchorCandidate(UIElement) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 ScrollView.
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.