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 方法。

適用於

另請參閱