共用方式為


ScrollViewer.UnregisterAnchorCandidate(UIElement) 方法

定義

UIElement 取消註冊為潛在的捲動錨點。

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)

參數

element
UIElement

ScrollViewer 子樹狀結構內的 UIElement

實作

備註

當元素的 CanBeScrollAnchor 屬性變更為 false (或從可視化樹狀結構中移除專案) 時,架構會在該元素的上階鏈結中找出第一個 IScrollAnchorProvider ,並自動呼叫其 UnregisterAnchorCandidate 方法。

適用於

另請參閱