ScrollViewer.CurrentAnchor 屬性

定義

目前選擇的錨點元素,用於捲動錨定。

public:
 property UIElement ^ CurrentAnchor { UIElement ^ get(); };
UIElement CurrentAnchor();
public UIElement CurrentAnchor { get; }
var uIElement = scrollViewer.currentAnchor;
Public ReadOnly Property CurrentAnchor As UIElement

屬性值

在版面設定階段或Null之後捲動錨定的最新選擇UIElement

實作

Windows 需求

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

備註

如果沒有向 ScrollViewer 註冊的錨點候選項目,或尚未選擇任何錨點候選項目,則 CurrentAnchor 為 null

適用於

另請參閱