Share via


IScrollAnchorProvider.UnregisterAnchorCandidate(UIElement) 方法

定义

注销 UIElement 作为可能的滚动定位点候选项。

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

参数

element
UIElement

IScrollAnchorProvider 子树中的 UIElement

注解

当元素的 CanBeScrollAnchor 属性更改为 false (或元素从可视化树) 中删除时,框架将查找该元素的上级链中的第一个 IScrollAnchorProvider ,并自动调用其 UnregisterAnchorCandidate 方法。

适用于

另请参阅