Share via


AnchorRequestedEventArgs.Anchor 属性

定义

获取或设置在执行滚动定位时要使用的 定位点元素

public:
 property UIElement ^ Anchor { UIElement ^ get(); void set(UIElement ^ value); };
UIElement Anchor();

void Anchor(UIElement value);
public UIElement Anchor { get; set; }
var uIElement = anchorRequestedEventArgs.anchor;
anchorRequestedEventArgs.anchor = uIElement;
Public Property Anchor As UIElement

属性值

用作 CurrentAnchorUIElement。 默认值为 null

注解

元素必须是滚动控件的后代。

适用于

另请参阅