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

實作

Windows 需求

裝置系列
Windows 10, version 1809 (已於 10.0.17763.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v7.0 引進)

備註

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

適用於

另請參閱