Table of Contents

Interface IScrollAnchorProvider

Namespace
Avalonia.Controls
Assembly
Avalonia.Controls.dll

Specifies a contract for a scrolling control that supports scroll anchoring.

public interface IScrollAnchorProvider

Properties

CurrentAnchor

The currently chosen anchor element to use for scroll anchoring.

Control? CurrentAnchor { get; }

Property Value

Control

Methods

RegisterAnchorCandidate(Control)

Registers a control as a potential scroll anchor candidate.

void RegisterAnchorCandidate(Control element)

Parameters

element Control

A control within the subtree of the IScrollAnchorProvider.

UnregisterAnchorCandidate(Control)

Unregisters a control as a potential scroll anchor candidate.

void UnregisterAnchorCandidate(Control element)

Parameters

element Control

A control within the subtree of the IScrollAnchorProvider.