IScrollAnchorProvider Interface

Summary

Specifies a contract for a scrolling control that supports scroll anchoring.
graph BT Type["IScrollAnchorProvider"] class Type type-node Implementing0["ScrollContentPresenter"]-.->Type click Implementing0 "/api/Avalonia.Controls.Presenters/ScrollContentPresenter" Implementing1["ScrollViewer"]-.->Type click Implementing1 "/api/Avalonia.Controls/ScrollViewer"

Syntax

public interface IScrollAnchorProvider

Properties

Name Value Summary
CurrentAnchor IControl?
The currently chosen anchor element to use for scroll anchoring.

Methods

Name Value Summary
RegisterAnchorCandidate(IControl) void
Registers a control as a potential scroll anchor candidate.
UnregisterAnchorCandidate(IControl) void
Unregisters a control as a potential scroll anchor candidate.