Sdílet prostřednictvím


UIElement.CanBeScrollAnchor Property

Definition

Gets or sets a value that indicates whether the UIElement can be a candidate for scroll anchoring.

public:
 property bool CanBeScrollAnchor { bool get(); void set(bool value); };
bool CanBeScrollAnchor();

void CanBeScrollAnchor(bool value);
public bool CanBeScrollAnchor { get; set; }
var boolean = uIElement.canBeScrollAnchor;
uIElement.canBeScrollAnchor = boolean;
Public Property CanBeScrollAnchor As Boolean

Property Value

Boolean

bool

true if an element should be considered as a candidate for scroll anchoring; otherwise, false. The default is false.

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Remarks

For more info, see the remarks for the IScrollAnchorProvider interface.

Applies to

See also