UIElement.CanBeScrollAnchor UIElement.CanBeScrollAnchor UIElement.CanBeScrollAnchor UIElement.CanBeScrollAnchor Property


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

public : Platform::Boolean CanBeScrollAnchor { get; set; }
bool CanBeScrollAnchor();

void CanBeScrollAnchor(bool canbescrollanchor);
public bool CanBeScrollAnchor { get; set; }
Public ReadWrite Property CanBeScrollAnchor As bool

Property Value

bool bool

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

Additional features and requirements

Device family
Windows 10, version 1809 (introduced v10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v7)


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

See also

  • T:Windows.UI.Xaml.Controls.IScrollAnchorProvider - M:Windows.UI.Xaml.Controls.IScrollAnchorProvider.RegisterAnchorCandidate(Windows.UI.Xaml.UIElement) - M:Windows.UI.Xaml.Controls.IScrollAnchorProvider.UnregisterAnchorCandidate(Windows.UI.Xaml.UIElement)